summaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* st/mesa: Implement st_api.h.Chia-I Wu2010-03-129-9/+860
| | | | | | | | There is currently no user of this new interface. As the inteface can coexist with st_public.h, everthing should work as before. ST_TEXTURE_2D is both defined by st_public.h and st_api.h. Reorder the headers in st/dri to avoid conflicts.
* r200: support additional blit formatsAlex Deucher2010-03-112-18/+138
| | | | swizzle in the pixel shader
* st/mesa: don't enable extensions which aren't actually supportedRoland Scheidegger2010-03-111-4/+3
| | | | | | | don't enable APPLE_client_storage, TDFX_texture_compression_FXT1, EXT_cull_vertex, NV_vertex_program, NV_vertex_program1_1 - the latter two might work somewhat with some luck. Also don't enable ARB_imaging.
* mesa/es: Validate the state in st_DrawTex.Chia-I Wu2010-03-111-0/+2
| | | | Without the validation, the function might draw with outdated textures.
* mesa/es: Fix GL_OES_draw_texture support.Chia-I Wu2010-03-111-0/+11
| | | | | | st_DrawTex calls util_draw_vertex_buffer. Since ac4abaecd5f52e416c89bfe19b34ed7f4e014b21, the caller is expected to set vertex elements before calling.
* st/dri: move extension initilization to st/mesa completelyMarek Olšák2010-03-111-0/+9
| | | | | | | | | Extensions were enabled in both st/mesa and st/dri, with st/dri completely overriding the decisions of st/mesa and exposing even the extensions claimed to be unsupported by a pipe driver. This commit moves the differences between the two to st/mesa and removes the responsibilty of advertising extensions from st/dri.
* Merge remote branch 'origin/7.8'Michel Dänzer2010-03-113-21/+10
|\
| * windows: fix compilation errors and warningsKarl Schultz2010-03-103-21/+10
| |
* | st/mesa: always advertise texture_rectangleMarek Olšák2010-03-111-1/+1
| |
* | dri/nouveau: Just reemit the BO state on pushbuf flush.Francisco Jerez2010-03-113-14/+14
| | | | | | | | | | | | Reemitting dirty states on flush causes problems if the GL context isn't fully consistent when we get to it. It didn't serve any specific purpose, so, use nouveau_bo_state_emit instead.
* | i965: Use the PLN instruction when possible in interpolation.Eric Anholt2010-03-108-7/+82
| | | | | | | | | | | | Saves an instruction in PINTERP, LINTERP, and PIXEL_W from brw_wm_glsl.c For non-GLSL it isn't used yet because the deltas have to be laid out differently.
* | i965: Set up the execution size before relying on it.Eric Anholt2010-03-101-5/+7
| | | | | | | | | | Fixes hangs with texturing in the non-GLSL path since f6d210c284751ac50a8d6358de7e75a1ff1e4ac7
* | radeon: fallback to sw ReadPixels if color logicop is enabledMaciej Cencora2010-03-101-1/+1
| | | | | | | | Fixes glean/logicOp (regressed after introducing hw accelerated support for ReadPixels)
* | r300: enable depth test only if depth buffer is availableMaciej Cencora2010-03-101-1/+1
| | | | | | | | Fixes #23532 and piglit/fbo-nodepth-test piglit/fbo-nostencil-test
* | radeon: fix glCopyTex(Sub)Image if user FBO is boundMaciej Cencora2010-03-101-3/+6
| | | | | | | | Fixes piglit/fbo-blit and wine d3d9 unit test.
* | i965: Add support for the CMP opcode in the GLSL path.Eric Anholt2010-03-103-6/+15
| | | | | | | | | | This would be triggered by use of sqrt() along with control flow. Fixes piglit-fs-sqrt-branch and a bug in Yo Frankie!.
* | i965: Print the opcode name for unrecognized opcodes in the GLSL path.Eric Anholt2010-03-101-2/+3
| |
* | i965: Fix the response len of masked sampler messages for 8-wide dispatch.Eric Anholt2010-03-101-2/+12
| | | | | | | | | | | | | | | | | | The bad response length would hang the GPU with a masked sample in a shader using control flow. For 8-wide, the response length is always 4, and masked slots are just not written to. brw_wm_glsl.c already allocates registers in the right locations. Fixes piglit glsl-fs-bug25902 (fd.o bug #25902).
* | i965: Print the offset for IFF in disasmEric Anholt2010-03-101-1/+1
| |
* | mesa: raise an error when trying to bind non-existant texture to FBOBrian Paul2010-03-101-0/+8
| | | | | | | | | | | | | | | | If the user calls glRenderBufferTexture(texture=N) but texture N doesn't name an existing texture, raise GL_INVALID_ENUM. Plus, add a comment about some questionable error checking code in framebuffer_texture(). Ian?
* | mesa: added new function commentsBrian Paul2010-03-101-0/+8
| |
* | st/mesa: set strb->format field in st_render_texture()Brian Paul2010-03-101-0/+2
| | | | | | | | | | | | This fixes a problem in glReadPixels when reading from an FBO's texture attachment. We have a better chance at hitting a fast path for glReadPixels now.
* | st/mesa: add some comments in glReadPixels codeBrian Paul2010-03-101-0/+7
| |
* | st/mesa: consolidate duplicated texture allocation codeBrian Paul2010-03-101-49/+49
| |
* | Merge branch '7.8'Brian Paul2010-03-101-6/+23
|\|
| * st/mesa: fix incorrect glCopyPixels between window/FBOBrian Paul2010-03-101-4/+16
| | | | | | | | | | | | | | | | | | There was a DrawBuffer/ReadBuffer typo and we were neglecting to invert the texture coords when copying from a window to an FBO. Plus, add some surface dump/debug code (disabled). (cherry picked from commit 34f02071618624263eba839b5aeb930d0e794078)
| * st/mesa: fix incorrect glDrawPixels into FBOBrian Paul2010-03-101-2/+7
| | | | | | | | | | | | We weren't inverting the textured quad when drawing into an fbo. (cherry picked from commit 8d3f629a13afb0d6acafc7a007972fdc5efe6847)
* | Merge branch '7.8'Michel Dänzer2010-03-101-0/+4
|\|
| * radeon: don't attempt to use alternate blit formats for depth buffersAlex Deucher2010-03-081-0/+4
| | | | | | | | noticed by fredrikh on IRC.
* | r200: add additional blit formatsAlex Deucher2010-03-101-0/+17
| |
* | r100: add additional blit formatsAlex Deucher2010-03-101-0/+14
| |
* | radeon/r200/r600: enable HW accelerated gl(Read/Copy/Draw)PixelsAlex Deucher2010-03-107-538/+15
| |
* | glapi: fix bug with tls and relocsGeorge Sapountzis2010-03-101-0/+3
| | | | | | | | | | | | add_dispatch (driver) and maybe get_proc_address (client) may be called before set_dispatch is called, which results in generate_entrypoint using an unreloced function template.
* | glapi: these two should be ok for add_dispatch ...George Sapountzis2010-03-101-1/+5
| | | | | | | | | | | | - a function cannot be both static and extension, right ? - we should be setting the offset only if not already set, right ?
* | glapi: comments for _glapi_add_dispatchGeorge Sapountzis2010-03-101-6/+18
| |
* | glapi: minor cosmetic for _glapi_add_dispatchGeorge Sapountzis2010-03-101-10/+11
| |
* | glapi: add function set_entry_infoGeorge Sapountzis2010-03-101-3/+22
| |
* | glapi: parameter checking, failure paths, ... for add_function_nameGeorge Sapountzis2010-03-101-12/+26
| |
* | glapi: cosmetic for _glapi_add_dispatchGeorge Sapountzis2010-03-101-25/+32
| | | | | | | | | | | | | | - static vs. extension - indent - s/new_offset/static_offset/ - ...
* | glapi: use get_extension_proc in _glapi_add_dispatchGeorge Sapountzis2010-03-101-12/+8
| |
* | glapi: cosmetic for functions for static tableGeorge Sapountzis2010-03-101-26/+33
| | | | | | | | make similar to functions for extensions table
* | glapi: add function to find extension by nameGeorge Sapountzis2010-03-101-10/+21
| |
* | glapi: functions for extensions table similar to static tableGeorge Sapountzis2010-03-101-19/+50
| |
* | gallium: Do not mix winsys-drawable-handle and context-private.Chia-I Wu2010-03-103-2/+3
| | | | | | | | | | update_buffer should be called with context-private, not winsys-drawable-handle.
* | gallium: plumb winsys-drawable-handle through to state trackerKeith Whitwell2010-03-102-3/+8
| | | | | | | | | | | | | | The state trackers need this value so that they can supply it as the "void *" argument to flush_frontbuffer. Fixes single-buffer rendering.
* | i965: Fix ENDLOOP to only patch up this loop's BREAK and CONT.Eric Anholt2010-03-091-2/+4
| | | | | | | | | | Corresponds to d225a25e21a24508aea3b877c78beb35502e942d and fixes piglit glsl-fs-loop-nested. Bug #25173.
* | i965: Unalias all GLSL source regs from the destination regs used.Eric Anholt2010-03-091-113/+25
| | | | | | | | | | | | | | | | | | | | | | We were doing it ad-hoc before, as instructions with potential aliasing problems were identified. But thanks to swizzling basically anything can have aliasing, so just do it generally at source reg setup time. This is somewhat inefficient, because sometimes an operation doesn't need unaliasing protection if the swizzling is safe, but the unaliasing before didn't cover those cases either. Fixes piglit glsl-fs-loop.
* | i965: Print the offsets for WHILE and BREAK in disasm.Eric Anholt2010-03-091-2/+2
| |
* | i965: Fix nested loops in the VS.Eric Anholt2010-03-091-2/+4
| | | | | | | | | | | | | | We were patching up all the break and continues between the start of our loop and the end of our loop, even if they were breaks/continues for an inner loop. Avoiding patching already patched breaks/continues fixes piglit glsl-vs-loop-nested.
* | i965: Fix up VP constbuf leak on program delete.Eric Anholt2010-03-091-3/+11
| |