summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'mesa_7_5_branch'Brian Paul2009-07-302-4/+32
|\
| * mesa/st: short-circuit glFinish calls on WIN32 onlyKeith Whitwell2009-07-291-0/+12
| | | | | | | | | | | | | | | | | | | | Windows opengl32.dll calls glFinish prior to every swapbuffers, which makes it pretty hard to get decent performance... Work around by mapping finish to flush on PIPE_OS_WINDOWS. This is conformant, though it might confuse poorly-written benchmarks which attempt to measure a single event rather than figuring out the rate of continuous processing.
| * mesa/st: recognize no-op scissor state when checking clear_with_quadsKeith Whitwell2009-07-291-4/+20
| | | | | | | | | | Some apps enable scissor but set the rectangle to the dimensions of the window. Don't let this force us onto a slower clear path.
* | mesa st: Change the preferred internal format for some RGB formats.Thomas Hellstrom2009-07-301-2/+2
| | | | | | | | | | | | | | | | For GL_RGB5, GL_RGB4 and GL_R3_G3_B2, prefer PIPE_FORMAT_R5G6B5_UNORM over PIPE_FORMAT_A1R5G5B5_UNORM, since hardware is more likely to support the previous format for rendering. Signed-off-by: Thomas Hellstrom <[email protected]>
* | mesa st: Report unsupported render-to-texture formats.Thomas Hellstrom2009-07-301-0/+53
| | | | | | | | | | | | | | | | If a texture image is bound to a framebuffer for render-to-texture, but the hardware doesn't support rendering to its internal format, report the framebuffer as incomplete with FRAMEBUFFER_UNSUPPORTED. Signed-off-by: Thomas Hellstrom <[email protected]>
* | gallium: fix SSE shadow texture instructionsBrian Paul2009-07-291-6/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When sampling a 2D shadow map we need 3 texcoord components, not 2. The third component (distance from light source) is compared against the texture sample to return the result (visible vs. occluded). Also, enable proper handling of TGSI_TEXTURE_SHADOW targets in Mesa->TGSI translation. There's a possibility for breakage in gallium drivers if they fail to handle the TGSI_TEXTURE_SHADOW1D / TGSI_TEXTURE_SHADOW2D / TGSI_TEXTURE_SHADOWRECT texture targets for TGSI_OPCODE_TEX/TXP instructions, but that should be easy to fix. With these changes, progs/demos/shadowtex.c renders properly again with softpipe.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-07-281-1/+2
|\| | | | | | | | | | | | | | | | | Conflicts: Makefile configs/default docs/relnotes.html src/mesa/main/version.h
| * st/mesa: silence warningBrian Paul2009-07-271-1/+2
| |
* | gallium: simplify tgsi_full_immediate structKeith Whitwell2009-07-221-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Remove the need to have a pointer in this struct by just including the immediate data inline. Having a pointer in the struct introduces complications like needing to alloc/free the data pointed to, uncertainty about who owns the data, etc. There doesn't seem to be a need for it, and it is unlikely to make much difference plus or minus to performance. Added some asserts as we now will trip up on immediates with more than four elements. There were actually already quite a few such asserts, but the >4 case could be used in the future to specify indexable immediate ranges, such as lookup tables.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-07-171-10/+13
|\| | | | | | | | | | | | | | | | | | | | | Conflicts: Makefile progs/glsl/multitex.c src/mesa/main/enums.c src/mesa/main/state.c src/mesa/main/texenvprogram.c src/mesa/main/version.h
| * mesa: Fix logbase2.José Fonseca2009-07-161-7/+5
| | | | | | | | It was providing 1 too many for non power two values.
| * mesa: Report the true face number when flushing.José Fonseca2009-07-141-3/+8
| |
* | st/mesa: add some array index bounds assertionsBrian Paul2009-07-161-0/+5
| |
* | gallium: Define PIPE_CAP_BLEND_EQUATION_SEPARATE, remove extension from ↵Patrice Mandin2009-07-141-1/+4
| | | | | | | | default extension list
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-07-132-1/+6
|\|
| * gallium: compare the actual register, not all the inputsZack Rusin2009-07-111-1/+1
| | | | | | | | otherwise we decrement indexes for all registers
| * st/mesa: implement indirect addressing for destination registersBrian Paul2009-07-101-0/+5
| |
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-051-3/+12
|\|
| * gallium: fixup register indexes for fog/frontface/point coordZack Rusin2009-07-071-3/+12
| |
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-046-36/+78
|\|
| * gallium: Fixes for clobbering stencil values in combined depth/stencil textures.Michel Dänzer2009-07-072-10/+37
| | | | | | | | | | Also fix one case where a 32 bit depth value was incorrectly converted to a combined depth/stencil value.
| * gallium: Only set FRONT_STATUS_COPY_OF_BACK if there is a back buffer.Michel Dänzer2009-07-071-1/+2
| | | | | | | | Fixes potential crash when SwapBuffers is called but there's no back buffer.
| * gallium: more fog extraction fixesZack Rusin2009-07-063-25/+39
| | | | | | | | | | fix the cases when fog coord/front face/point coord are used in the same shader.
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-035-5/+135
|\| | | | | | | | | | | Conflicts: src/mesa/main/dlist.c src/mesa/vbo/vbo_save_api.c
| * mesa: Assume depth textures have a single level unless told otherwise.José Fonseca2009-07-021-1/+3
| |
| * st/gl: Add stubs for CompressedTexSubImage[1D|3D]Jakob Bornecrantz2009-06-301-0/+27
| |
| * st/gl: Add support for glCompressedTexSubImageJakob Bornecrantz2009-06-301-0/+58
| |
| * mesa: Unbind depth/stencil surface from pipe_framebuffer when none is attached.José Fonseca2009-07-011-0/+2
| |
| * gallium: fix the front face semanticsZack Rusin2009-07-013-4/+45
| | | | | | | | | | | | | | | | mesa allocates both frontface and pointcoord registers within the fog coordinate register, by using swizzling. to make it cleaner and easier for drivers we want each of them in its own register. so when doing compilation from the mesa IR to tgsi allocate new registers for both and add new semantics to the respective declarations.
* | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-301-0/+3
|\| | | | | | | | | | | Conflicts: src/mesa/vbo/vbo_exec_draw.c
| * mesa: Set FLUSH_EXPLICIT_BIT flags when calling FlushMappedBufferRange.José Fonseca2009-06-301-0/+3
| | | | | | | | As prescribed by ARB_map_buffer_range.
* | st/mesa: enable GL_ARB_framebuffer_objectBrian Paul2009-06-291-0/+6
| | | | | | | | | | All gallium drivers should be able to support mixed-size color/depth/stencil buffers. If not, we'll need a new PIPE_CAP_ query.
* | mesa: alphabetize linesBrian Paul2009-06-291-1/+1
| |
* | Merge branch 'arb_vertex_array_object'Brian Paul2009-06-261-1/+2
|\ \
| * | st/mesa: alphabetize linesBrian Paul2009-06-221-1/+1
| | |
| * | st/mesa: enable GL_ARB_vertex_array_objectBrian Paul2009-06-221-0/+1
| | |
* | | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-261-0/+5
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | Conflicts: Makefile src/gallium/drivers/softpipe/sp_screen.c src/mesa/main/version.h
| * | st/mesa: query PIPE_CAP_TGSI_CONT_SUPPORTEDBrian Paul2009-06-261-0/+5
| | |
* | | Merge branch 'mesa_7_5_branch'Brian Paul2009-06-243-25/+4
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/i915/i915_tex_layout.c src/mesa/drivers/dri/i965/brw_wm_glsl.c src/mesa/drivers/dri/intel/intel_buffer_objects.c src/mesa/drivers/dri/intel/intel_pixel_bitmap.c src/mesa/drivers/dri/intel/intel_pixel_draw.c src/mesa/main/enums.c src/mesa/main/texstate.c src/mesa/vbo/vbo_exec_array.c
| * | Always free image offsets memory when re-initializing texture image fields.Michel Dänzer2009-06-191-3/+0
| | | | | | | | | | | | Fixes leak running compiz with direct rendering.
| * | mesa: rework viewport/scissor initialization codeBrian Paul2009-06-172-22/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The first time a context is bound to a drawable, the viewport and scissor bounds are initialized to the buffer's size. This is actually a bit tricky. A new _mesa_check_init_viewport() function is called in several places to check if the viewport has been initialized. We also use a new ctx->ViewportInitialized flag instead of the overloaded ctx->FirstTimeCurrent flag.
* | | st/mesa: fix setup_edgeflags() regressionBrian Paul2009-06-221-1/+3
| |/ |/| | | | | | | stobj is now non-null for the default/null buffer object. Update the test to check the buffer ID to see if it's a real buffer object.
* | st/mesa: restore some parameter checking buffer object functionsBrian Paul2009-06-191-0/+10
| | | | | | | | | | These functions may be called from the VBO code (not just user GL calls) so do some parameter sanity checking.
* | st/mesa: remove redundant st_buffer_object::size field and error checksBrian Paul2009-06-192-9/+0
| | | | | | | | | | | | Just use the gl_buffer_object::Size field. Remove unnecessary size/offset error checks. Core Mesa will have already done these checks before these functions are called.
* | st/mesa: no longer special-case buffer object 0 in st_buffer_object() cast ↵Brian Paul2009-06-191-9/+2
| | | | | | | | | | | | | | | | wrapper Since commit 6629a35559ff7e3b993966f697f7c7f68e5a38d9 "mesa: create/destroy buffer objects via driver functions" this is no longer needed, and actually was causing a crash during context tear-down.
* | Merge branch 'ext-provoking-vertex'Brian Paul2009-06-192-0/+4
|\ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: docs/relnotes-7.6.html progs/tests/Makefile src/gallium/drivers/softpipe/sp_prim_vbuf.c src/glx/x11/indirect.c src/mesa/glapi/Makefile src/mesa/glapi/dispatch.h src/mesa/glapi/glapioffsets.h src/mesa/glapi/glapitable.h src/mesa/glapi/glapitemp.h src/mesa/glapi/glprocs.h src/mesa/main/dlist.c src/mesa/main/enums.c src/mesa/sparc/glapi_sparc.S src/mesa/x86-64/glapi_x86-64.S src/mesa/x86/glapi_x86.S
| * | st/mesa: enable EXT_provoking_vertexBrian Paul2009-06-091-0/+1
| | |
| * | st: set pipe_rasterizer_state::flatshade_first according to provoking vertex ↵Brian Paul2009-05-281-0/+3
| | | | | | | | | | | | state
* | | Merge branch 'arb_map_buffer_range'Brian Paul2009-06-151-0/+1
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: docs/relnotes-7.6.html src/mesa/main/mtypes.h
| * | | st/mesa: enable GL_ARB_map_buffer_rangeBrian Paul2009-06-081-0/+1
| | | |