Keith Whitwell
c0bff53334
mesa/main: protect driver.finish with FLUSH_CURRENT
Already doing this for driver.flush()
17 anni fa
Keith Whitwell
106f2b031c
mesa/st: remove duplicate offset calculation
17 anni fa
Keith Whitwell
eb979cef85
gallium/draw: add ability to print out active pipeline stages
17 anni fa
Keith Whitwell
afc0c59dbd
mesa/st: translate VERT_ATTRIB_GENERIC8..15 in st_translate_vertex_program
It seems quake4 can hit these attributes sometimes.
17 anni fa
Keith Whitwell
fd402791f9
progs: add fflushes for cygwin
17 anni fa
Keith Whitwell
b91e5f8e19
util/indices: remove debug prints
17 anni fa
Keith Whitwell
afd16512bc
mesa/st: workaround for crashes in st_copy_texsubimage
Proper fix for this hasn't been identified, but avoid crashing.
17 anni fa
José Fonseca
43e24a5928
wgl: Store current HDC/HGLRC in stw_context.
Less TLS lookups.
17 anni fa
Alex Deucher
09c91a1565
R300: add quadpipe overrides
RV410 SE chips only have 1 quadpipe.
Also, handle other R300 chip with quadpipe override
17 anni fa
Brian Paul
43d9020ff1
i965: avoid segfault in intel_update_renderbuffers() if using DRI1
17 anni fa
Brian Paul
dcf571aff9
swrast: add missing break in clamp_rect_coord_linear()
See bug 21461.
17 anni fa
Brian Paul
e0d5ff1a8a
demos: asst. updates, clean-ups
17 anni fa
Thomas Hellstrom
2c994ad3cb
gallium dri st: Propagate the drawable info when we bind to new drawables.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
17 anni fa
Thomas Hellstrom
8cfa6546c9
gallium dri st: Use st_get_current() instead of GET_CURRENT_CONTEXT()
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
17 anni fa
Thomas Hellstrom
3d2bba0d10
st: Add an st_get_current() function.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
17 anni fa
Jakob Bornecrantz
aef3bccbda
gallium-intel: Create a i965_dri.so symlink
This is only used for debuging the gem backend on i965
chipset using the softpipe pipe driver.
Usage: "export INTEL_SOFTPIPE=y" and point LIBGL_DRIVERS_PATH
to "$MESA/lib/gallium" where $MESA is the mesa root.
17 anni fa
Jakob Bornecrantz
c9b336bc93
gallium-intel: Fix build of dri driver
17 anni fa
Thomas Hellstrom
171c7f91cd
gallium dri st: Fix up some comments and minor bugs.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
17 anni fa
Corbin Simpson
81ded8092a
radeon-r300: Fix a bit of breakage.
Not really sure why reordering the ioctls makes them work again.
17 anni fa
Corbin Simpson
1ae877d95a
radeon: Use PCI_MATCH_ANY for xorg driver.
Might as well.
17 anni fa
Thomas Hellstrom
05af5a7f59
gallium: Rename the dri state tracker lib to libdridrm.a
17 anni fa
Thomas Hellstrom
0929b2bf3c
gallium: indent and cleanfile the dri state-tracker.
17 anni fa
Thomas Hellstrom
ca1f5f7e6c
gallium: Update the dri2 state tracker to support dri1.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
17 anni fa
Thomas Hellstrom
a70c4f352e
gallium: Add a dri1 api
that a driver needs to implement on top of the drm api to support dri1.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
17 anni fa
Thomas Hellstrom
2e5acd24b0
gallium: Move the dri2 state tracker since we're about to extend it to dri1.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
17 anni fa
Thomas Hellstrom
638261b353
gallium: Update the drm_api.
Make it possible to pass state-tracker-specific data to the
init_screen function, and even open the door for device-specific
state-tracker screen initialization.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
17 anni fa
Robert Ellison
359a58230e
Avoid a segfault in shader compilation
If a shader reaches an out-of-memory condition while adding
a new function (reallocating the function list), a segfault
will occur during cleanup (because the num_functions field
is non-zero, but the functions pointer is NULL).
This fixes that segfault by zeroing out the num_functions
field if reallocation fails.
17 anni fa
José Fonseca
76b9da9e98
wgl: Cope with pre-existing threads.
DllMain is called with DLL_THREAD_ATTACH only by threads created after
the DLL is loaded by the process.
17 anni fa
José Fonseca
c384ccb0c4
wgl: Implement WGL_EXT_extensions_string extension.
17 anni fa
José Fonseca
3ebcf2dd74
util: Remove unix includes.
17 anni fa
Brian Paul
dc9705d12d
i965: only upload constant buffer data when we actually need the const buffer
Make the use_const_buffer field per-program and only call the code which
updates the constant buffer's data if the flag is set.
This should undo the perf regression from 20f3497e4b
17 anni fa
Keith Whitwell
5250eec652
util/time: add util_time_sleep() for windows userspace
Somebody with a clue could probably do a better implemenation...
17 anni fa
Keith Whitwell
5ed7764fd6
mesa/st: fix incorrect face, level in compress_with_blit
We were incorrectly applying the destination texture face and level
when requesting a transfer to the temporary texture, which has only
one face and level. This would obviously cause problems uploading to
compressed cube and mipmap textures.
17 anni fa
Shuang He
e326600609
demos: Clean up allocated Textures and Display Lists when demo quit
17 anni fa
Micah Dowty
b618827fac
util: Add debug_printf_once
17 anni fa
José Fonseca
99b77d05d2
mesa: Call _mesa_snprintf instead of snprintf.
snprintf not directly available on Windows.
17 anni fa
José Fonseca
b504721cc7
stw: Use a statically initiallized gl proc table.
It doesn't change anyway.
17 anni fa
Maciej Cencora
4486e40143
r300: always emit output insts after all KIL insts
17 anni fa
Corbin Simpson
904b563fd0
r300-gallium: Correctly flush Draw.
Should help with a few non-TCL bugs.
17 anni fa
Mathias Gottschlag
86d2144412
r300-gallium: Add a draw_flush() to r300_flush().
This fixes some missing primitives which had been drawn right before the next glClear().
17 anni fa
Corbin Simpson
233c6fb694
r300-gallium: Fix vertex shader OVM counting.
Attribs must be packed: position, point size, colors, texcoords.
Thanks to osiris for pointing it out.
17 anni fa
Corbin Simpson
f45a7a1d1f
r300-gallium: Clean up FB state emit.
17 anni fa
Mathias Gottschlag
d9f2d0752b
r300-gallium: Set framebuffer pitch on every framebuffer change.
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
17 anni fa
Jakob Bornecrantz
a098e60903
gallium-intel: Fix warning
17 anni fa
Jakob Bornecrantz
5f701f22f0
gallium-intel: Cache software switch
17 anni fa
Jakob Bornecrantz
f44f1155a9
gallium-intel: Link dri2 driver with softpipe
17 anni fa
Samuel Thibault
d18dd6ad11
GNU/Hurd fixes
Here is a couple of fixes for GNU/Hurd:
- dri_interface.h: no libdrm support either.
- configure.ac:
- GNU/Hurd is a GNU OS with _GNU_SOURCE and PTHREADS.
- GNU needs a couple of flags like other OSes
Signed-off-by: Dan Nicholson <dbn.lists@gmail.com>
17 anni fa
Ian Romanick
022319b92c
intel: Fix more issues with the combined depth-stencil attachment
17 anni fa
Ian Romanick
302ba83116
intel: Initialize region ptr to prevent assertion in intel_region_reference
17 anni fa
Brian Paul
91eb8baaca
tgis: SSE code generator doesn't yet support indirect addressing of temp regs
Fall back to interpreter in this case.
17 anni fa