- 17 Jun, 2011 1 commit
-
-
José Fonseca authored
To enable embedding in platforms other than linux.
-
- 16 Jun, 2011 4 commits
-
-
Brian Paul authored
And replace IS_CUBE_FACE() macro w/ inline function.
-
Brian Paul authored
Move this code out of _mesa_make_current() and put it into a helper function.
-
Brian Paul authored
-
Vadim Girlin authored
Signed-off-by:
Vadim Girlin <vadimgirlin@gmail.com> Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
- 15 Jun, 2011 13 commits
-
-
Chad Versace authored
Signed-off-by:
Chad Versace <chad@chad-versace.us>
-
Chad Versace authored
When emitting either a hiz or stencil buffer, the 'separate stencil enable' and 'hiz enable' bits are set in 3DSTATE_DEPTH_BUFFER. Therefore we must emit both 3DSTATE_HIER_DEPTH_BUFFER and 3DSTATE_STENCIL_BUFFER. Even if there is no stencil buffer, 3DSTATE_STENCIL_BUFFER must be emitted; failure to do so causes a hang on gen5 and a stall on gen6. This also fixes a silly, obvious segfault that occured when a hiz buffer xor separate stencil buffer existed. Fixes the piglit tests below on Gen5 when hiz and separate stencil are manually enabled: fbo-alphatest-nocolor fbo-depth-sample-compare fbo hiz-depth-read-fbo-d24-s0 hiz-depth-stencil-test-fbo-d24-s0 hiz-depth-test-fbo-d24-s0 hiz-stencil-read-fbo-d0-s8 hiz-stencil-test-fbo-d0-s8 fbo-missing-attachment-clear fbo-clear-formats fbo-depth-* Changes piglit test result from crash to fail: hiz-depth-stencil-test-fbo-d0-s8 Signed-off-by:
Chad Versace <chad@chad-versace.us>
-
Marek Olšák authored
-
Mike Kaplinskiy authored
[airlied: final chunk of Mike's patch from bug 37476 this uses a loop to emit the GRADIENTS and does a check to see if we need to fetch to a temporary register. It also increases the context src gpr to 4 which is needed here.] Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Mike Kaplinskiy authored
[airlied: taken from Mike's patch in bug 37476] Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Kenneth Graunke authored
Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org> NOTE: This is a candidate for stable release branches (and don't forget to re-run "make builtins" after cherry-picking.)
-
Mike Kaplinskiy authored
Mike had actually done a lot of the TXD support in a patch in bug 37476 which I see now, I'll add the bits of his work that I didn't think to add to my work. Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Dave Airlie authored
This at least passes the piglit arb_shader_texture_lod-texgrad test, the AMD shader analyzer seems to multiply the V component by an unspecified constant value no idea why. Signed-off-by:
Dave Airlie <airlied@redhat.com>
-
Brian Paul authored
-
Marek Olšák authored
-
Marek Olšák authored
This sets the base level as the zero level, which fixes piglit/texturing/tex-miplevel-selection*. The r600 hardware ignores the BASE_LEVEL field in some cases, so we can't use it. Evergreen might need this too.
-
Kenneth Graunke authored
Commit 56ef62d9 "glsl: Generate readable unique names at print time." changed ir_print_visitor to not generate @0x1234567 suffixes except where necessary. So there's no need to manually remove them. Signed-off-by:
Kenneth Graunke <kenneth@whitecape.org>
-
Jeremy Huddleston authored
This change to _glapi_create_table_from_handle causes it to fill the dispatch table with NoOps for unimplemented functionality. This matches what is done in indirect_init.c and also allows us to enable logging (when built with -DDEBUG and the MESA_DEBUG or LIBGL_DEBUG environment variables are set) to catch cases where clients are trying to use these unimplemented extentions. Additionally, this fixes some gcc -pedantic warnings. Signed-off-by:
Jeremy Huddleston <jeremyhu@apple.com>
-
- 14 Jun, 2011 22 commits
-
-
Brian Paul authored
-
Brian Paul authored
-
Brian Paul authored
-
Brian Paul authored
-
Brian Paul authored
Check that the difference in array pointers/offsets from the 0th array are less than the stride, for both VBOs and user-space arrays. Previously, we were only doing this for the later. This tightens up the interleaved array test and fixes a problem with the llvmpipe driver where we were creating way too many vertex fetch variants only because the pipe_vertex_element::src_offset values were changing frequently. This change results in a 5x speed-up for one of the viewperf tests. Also, clean up the function to make it easier to understand.
-
Alex Deucher authored
Signed-off-by:
Alex Deucher <alexdeucher@gmail.com>
-
Marek Olšák authored
-
Marek Olšák authored
-
Eric Anholt authored
The code was playing fast and loose with rowstrides, which meant that if a driver chose anything different for its alignment requirements, the generated mipmaps came out garbage. Unlike the uncompressed case, we can't generate mipmaps directly into image->Data, so by using TexImage2D we cut out most of the weird logic that existed to generate in-place into ->Data. The up/downside is that the driver recovery code for the fact that _mesa_generate_mipmaps whacked ->Data has to be turned off for compressed now. Fixes 6 piglit tests about compressed mipmap gen.
-
Eric Anholt authored
-
Eric Anholt authored
-
Eric Anholt authored
The path taken is wildly different based on this (do we generate from a temporary image, or from level-1's data), and we appear to have stride bugs in the compressed case that are tough to disentangle. This just duplicates the code for the moment, the followon commit will do the actual changes. Only real code change here is handling maxLevel in one common place.
-
Eric Anholt authored
This is effectively just "round up when dividing by 4" compared to the previous code. Fixes the broken stripe at the top of fbo-generatemipmap-formats GL_EXT_texture_compression_rgtc.
-
Eric Anholt authored
-
Eric Anholt authored
-
Eric Anholt authored
One less argument and thing to get wrong.
-
Eric Anholt authored
One less argument to this insanely long function call.
-
Eric Anholt authored
This has been replaced with the gl_format now.
-
Eric Anholt authored
We don't care just about the internalFormat/cpp/compressed, but about the specific format chosen. We have no support for format translations as part of texture validation, and furthermore it has restrictions in the GL specification. However, we should be making consistent decisions for this check anyway.
-
Eric Anholt authored
-
Eric Anholt authored
We were using the default 4x2 alignment instead of the 4x4 required for RGTC textures.
-
Eric Anholt authored
We only had internal_format before, which is way more irritating to work with.
-