Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | draw: add support for guard-band clipping | Brian Paul | 2011-09-22 | 9 | -7/+51 |
| | |||||
* | draw: Reduce the number of vertex shader variants per context to 128. | José Fonseca | 2011-09-22 | 1 | -1/+1 |
| | |||||
* | draw: Respect max_indices from the renderer. | Kurt Daverman | 2011-09-22 | 1 | -1/+1 |
| | |||||
* | translate: check for PIPE_SUBSYSTEM_EMBEDDED | Brian Paul | 2011-09-22 | 1 | -1/+1 |
| | |||||
* | tgsi: Check in scan for fs position and depth reads | Jakob Bornecrantz | 2011-09-22 | 2 | -0/+17 |
| | |||||
* | svga: skip assertion when index_bias < 0 | Brian Paul | 2011-09-22 | 1 | -1/+1 |
| | | | | See bug 688383 | ||||
* | svga: fix the test for sRGB texture formats | Brian Paul | 2011-09-22 | 1 | -1/+2 |
| | | | | | | | | | | The pipe_sampler_view::format field should be prefered over the resource/ texture format. The former is used to override the texture format for sRGB decode enable/disable, etc. Also, use new util_format_is_srgb() helper to catch all sRGB formats. This fixes the piglit tex-srgb test for GL_EXT_texture_sRGB_decode. | ||||
* | gallium/util: add util_format_is_srgb() helper | Brian Paul | 2011-09-22 | 1 | -0/+7 |
| | |||||
* | util: add u_bit_scan helper | Keith Whitwell | 2011-09-22 | 2 | -7/+16 |
| | |||||
* | util: Allow to make the depth/stencil format queries without repeatedly ↵ | José Fonseca | 2011-09-22 | 1 | -9/+20 |
| | | | | | | | looking up the format description. All functions here should take struct util_format_description * IMO, to incentive efficient code. | ||||
* | util: single call to util_format_description in fill_rect | Keith Whitwell | 2011-09-22 | 1 | -3/+4 |
| | |||||
* | util: Handle conversion between depth stencil formats. | José Fonseca | 2011-09-22 | 1 | -0/+44 |
| | |||||
* | i915g: Add an optimization to get rid of useless movs, in particular at the ↵ | Stéphane Marchesin | 2011-09-21 | 1 | -3/+38 |
| | | | | end of some shaders. | ||||
* | i915g: Fix some whitespace problems. | Stéphane Marchesin | 2011-09-21 | 2 | -12/+12 |
| | |||||
* | i915g: Blend equation separate seems to work. | Stéphane Marchesin | 2011-09-21 | 1 | -6/+1 |
| | |||||
* | i915g: Add ifdef'd out code to dump compiled shaders. | Stéphane Marchesin | 2011-09-21 | 1 | -0/+4 |
| | |||||
* | i915g: Fix bug in shader optimizer. | Stéphane Marchesin | 2011-09-21 | 1 | -2/+2 |
| | |||||
* | i915g: Remove stale function prototype. | Stéphane Marchesin | 2011-09-21 | 1 | -6/+0 |
| | |||||
* | svga: call u_default_redefine_user_buffer() to fix failed assertion | Brian Paul | 2011-09-21 | 1 | -5/+2 |
| | | | | | | | | | | | This fixes a regression from a8cf4b6acf9ee996090cc0bb95fa3558b481108c The problem occured when two successive glDrawArrays calls accessed subsequent elements in user-space arrays. The user-space array from the first call wasn't being grown to accomodate the second draw call's elements. Reviewed-by: Thomas Hellstrom <[email protected]> | ||||
* | meta: Don't hang on to program refcounts after metaops are done. | Eric Anholt | 2011-09-21 | 1 | -0/+5 |
| | | | | | | | Fixes piglit ARB_shader_objects/clear-with-deleted. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=39577 Reviewed-by: Brian Paul <[email protected]> | ||||
* | i965/vs: Return a dummy value when visiting ir_texture. | Eric Anholt | 2011-09-21 | 1 | -0/+1 |
| | | | | | | While the program won't successfully link in the end, this avoids possible assertion failure in the driver during linking if this->result isn't initialized with something already. | ||||
* | i965/gen6+: When only BFC is written, use BFC as the color. | Eric Anholt | 2011-09-21 | 1 | -0/+9 |
| | | | | Fixes piglit vertex-program-two-side enabled back back2 | ||||
* | i965/gen6+: Respect the VERTEX_PROGRAM_TWO_SIDE flag for shaders. | Eric Anholt | 2011-09-21 | 3 | -9/+8 |
| | | | | | | | Fixes piglit: vertex-program-two-side enabled front back front2 back2 vertex-program-two-side enabled front back vertex-program-two-side enabled front2 back2 | ||||
* | mesa: Add a context flag indicating whether two-sided lighting should happen. | Eric Anholt | 2011-09-21 | 2 | -1/+19 |
| | | | | | The 965 driver was ignoring the VERTEX_PROGRAM_TWO_SIDE flag and only looking at fixed-function state. | ||||
* | util: remove stray debug code | Brian Paul | 2011-09-21 | 1 | -2/+0 |
| | |||||
* | mesa: check glBegin()/glDrawArrays()/etc mode with _mesa_valid_prim_mode() | Brian Paul | 2011-09-21 | 4 | -7/+41 |
| | | | | | | | | | We now raise an GL_INVALID_ENUM in glBegin() if mode is illegal, as was done in Yuanhan Liu's original patch. Take geometry shaders support into account too. Reviewed-by: Yuanhan Liu <[email protected]> | ||||
* | gallivm: fix build with llvm 3.0svn | Brian Paul | 2011-09-21 | 1 | -2/+8 |
| | | | | https://bugs.freedesktop.org/show_bug.cgi?id=41065 | ||||
* | tnl: include swrast/s_chan.h to fix sse build | Brian Paul | 2011-09-21 | 1 | -0/+1 |
| | |||||
* | st/vega: fix drawing images with alpha channel | Chia-I Wu | 2011-09-21 | 2 | -18/+22 |
| | | | | | | | | | | Checking if the paints are opaque in renderer_validate_blend() does not work. We could be drawing images. Remove the check from renderer_validate_blend() and take image drawing into consideration in blend_use_shader(). The bug was introduced by 3f0a966807f03a364edea0272ddf45f08ab7ce4f, which affects the lookup demo. | ||||
* | st/vega: fix vg_context_is_object_valid() | Chia-I Wu | 2011-09-21 | 7 | -25/+21 |
| | | | | | | | | | | vg_context_is_object_valid() checks if a handle is valid by checking if the handle is a valid key of the object hash table. However, the keys of the object hash table were object pointers. Fix vg_context_add_object() to use the handles as the keys so that vg_context_is_object_valid() works. This bug was introduced by 99c67f27d35a4bbbbefada8117d5972c7583cf42. | ||||
* | swrast: s/GLubyte/GLchan/ in a cast | Brian Paul | 2011-09-20 | 1 | -1/+1 |
| | |||||
* | llvmpipe: silence a pointer type warning | Brian Paul | 2011-09-20 | 1 | -1/+1 |
| | |||||
* | meta: use _mesa_set_enable() in more places | Brian Paul | 2011-09-20 | 1 | -5/+5 |
| | | | | | | Avoids an extra context lookup. Reviewed-by: Eric Anholt <[email protected]> | ||||
* | meta: use _mesa_set_enable(), fix decompress_texture_image() | Brian Paul | 2011-09-20 | 1 | -1/+4 |
| | | | | | | | | | Use _mesa_set_enable() to avoid a redudant context lookup. Need to disable the texture target in decompress_texture_image() so the unit isn't still enabled after glGetTexImage() returns. Arguably, the meta restore code should do this, but it doesn't. Reviewed-by: Eric Anholt <[email protected]> | ||||
* | st/mesa: specify source mipmap level in decompress_with_blit() | Brian Paul | 2011-09-20 | 1 | -0/+3 |
| | | | | | This, along with the previous patch, fixes glGetTexImage() of compressed textures for level > 0. | ||||
* | gallium/util: observe sampler view's first_level in util_blit_pixels_tex() | Brian Paul | 2011-09-20 | 1 | -6/+10 |
| | | | | This lets us blit from a non-zero source level. | ||||
* | meta: fix broken sRGB mipmap generation | Brian Paul | 2011-09-20 | 1 | -0/+28 |
| | | | | | | | | | | If we're generating a mipmap for an sRGB texture we need to bypass sRGB->linear conversion. Otherwise the destination mipmap level (drawn with a textured quad) will have the wrong colors. If we can't turn of sRGB->linear conversion (GL_EXT_texture_sRGB_decode) we need to use the software fallback for mipmap generation. Note: This is a candidate for the 7.11 branch. | ||||
* | mesa: fix PACK_COLOR_5551(), PACK_COLOR_1555() macros | Brian Paul | 2011-09-20 | 1 | -2/+2 |
| | | | | | | | | | | | The 1-bit alpha channel was incorrectly encoded. Previously, any non-zero alpha value for the ubyte alpha value would set A=1. Instead, use the most significant bit of the ubyte alpha to determine the A bit. This is consistent with the other channels and other OpenGL implementations. Note: This is a candidate for the 7.11 branch. Reviewed-by: Michel Dänzer <[email protected]> | ||||
* | mesa: move last bits of GLchan stuff into swrast | Brian Paul | 2011-09-20 | 10 | -102/+127 |
| | | | | | This removes the last remnants of the GLchan datatype and associated macros out of core Mesa and into swrast. | ||||
* | mesa: remove CHAN_TYPE cruft from debug.c | Brian Paul | 2011-09-20 | 1 | -4/+0 |
| | |||||
* | mesa: remove unused interp/stride chan macros | Brian Paul | 2011-09-20 | 1 | -27/+0 |
| | |||||
* | mesa: remove unused UNCLAMPED_FLOAT_TO_RGB_CHAN() macro | Brian Paul | 2011-09-20 | 1 | -16/+0 |
| | |||||
* | radeon: use _mesa_unclamped_float_rgba_to_ubyte() | Brian Paul | 2011-09-20 | 2 | -3/+3 |
| | |||||
* | r200: use _mesa_unclamped_float_rgba_to_ubyte() | Brian Paul | 2011-09-20 | 2 | -3/+3 |
| | |||||
* | mesa: remove unused <type>_TO_CHAN() macros | Brian Paul | 2011-09-20 | 1 | -40/+0 |
| | |||||
* | mesa: convert _mesa_unpack_color_span_chan() to ubyte | Brian Paul | 2011-09-20 | 3 | -55/+53 |
| | |||||
* | mesa: replace GLchan with GLubyte in texcompress_s3tc.c | Brian Paul | 2011-09-20 | 1 | -59/+57 |
| | |||||
* | mesa/gallium: remove GLchan from latc, rgtc code | Brian Paul | 2011-09-20 | 4 | -30/+30 |
| | |||||
* | mesa: remove GLchan in texcompress_fxt1.c | Brian Paul | 2011-09-20 | 1 | -74/+53 |
| | |||||
* | mesa: s/_mesa_make_temp_chan_image()/_mesa_make_temp_ubyte_image() | Brian Paul | 2011-09-20 | 5 | -123/+123 |
| | | | | Another step toward eliminating the GLchan type. |