[Mesa-dev] [PATCH 1/2] mesa: fix glGet queries depending on derived framebuffer state
Eric Anholt
eric at anholt.net
Mon Apr 8 11:40:39 PDT 2013
Marek Olšák <maraeo at gmail.com> writes:
> "ctx->DrawBuffer->Visual" might be invalid if (NewState &_NEW_BUFFERS) != 0.
>
> NOTE: This is a candidate for stable branches.
> ---
> src/mesa/main/get_hash_params.py | 8 ++++----
> 1 file changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py
> index 4ef2324..580e62f 100644
> --- a/src/mesa/main/get_hash_params.py
> +++ b/src/mesa/main/get_hash_params.py
> @@ -8,7 +8,7 @@ descriptor=[
> [ "COLOR_WRITEMASK", "LOC_CUSTOM, TYPE_INT_4, 0, NO_EXTRA" ],
> [ "CULL_FACE", "CONTEXT_BOOL(Polygon.CullFlag), NO_EXTRA" ],
> [ "CULL_FACE_MODE", "CONTEXT_ENUM(Polygon.CullFaceMode), NO_EXTRA" ],
> - [ "DEPTH_BITS", "BUFFER_INT(Visual.depthBits), NO_EXTRA" ],
> + [ "DEPTH_BITS", "BUFFER_INT(Visual.depthBits), extra_new_buffers" ],
> [ "DEPTH_CLEAR_VALUE", "CONTEXT_FIELD(Depth.Clear, TYPE_DOUBLEN), NO_EXTRA" ],
> [ "DEPTH_FUNC", "CONTEXT_ENUM(Depth.Func), NO_EXTRA" ],
> [ "DEPTH_RANGE", "CONTEXT_FIELD(Viewport.Near, TYPE_FLOATN_2), NO_EXTRA" ],
> @@ -31,7 +31,7 @@ descriptor=[
> [ "RED_BITS", "BUFFER_INT(Visual.redBits), extra_new_buffers" ],
> [ "SCISSOR_BOX", "LOC_CUSTOM, TYPE_INT_4, 0, NO_EXTRA" ],
> [ "SCISSOR_TEST", "CONTEXT_BOOL(Scissor.Enabled), NO_EXTRA" ],
> - [ "STENCIL_BITS", "BUFFER_INT(Visual.stencilBits), NO_EXTRA" ],
> + [ "STENCIL_BITS", "BUFFER_INT(Visual.stencilBits), extra_new_buffers" ],
> [ "STENCIL_CLEAR_VALUE", "CONTEXT_INT(Stencil.Clear), NO_EXTRA" ],
> [ "STENCIL_FAIL", "LOC_CUSTOM, TYPE_ENUM, NO_OFFSET, NO_EXTRA" ],
> [ "STENCIL_FUNC", "LOC_CUSTOM, TYPE_ENUM, NO_OFFSET, NO_EXTRA" ],
> @@ -80,8 +80,8 @@ descriptor=[
> [ "SAMPLE_COVERAGE_ARB", "CONTEXT_BOOL(Multisample.SampleCoverage), NO_EXTRA" ],
> [ "SAMPLE_COVERAGE_VALUE_ARB", "CONTEXT_FLOAT(Multisample.SampleCoverageValue), NO_EXTRA" ],
> [ "SAMPLE_COVERAGE_INVERT_ARB", "CONTEXT_BOOL(Multisample.SampleCoverageInvert), NO_EXTRA" ],
> - [ "SAMPLE_BUFFERS_ARB", "BUFFER_INT(Visual.sampleBuffers), NO_EXTRA" ],
> - [ "SAMPLES_ARB", "BUFFER_INT(Visual.samples), NO_EXTRA" ],
> + [ "SAMPLE_BUFFERS_ARB", "BUFFER_INT(Visual.sampleBuffers), extra_new_buffers" ],
> + [ "SAMPLES_ARB", "BUFFER_INT(Visual.samples), extra_new_buffers" ],
Don't RGBA_FLOAT_MODE_ARB and FRAMEBUFFER_SRGB_CAPABLE_EXT also need
this treatment?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20130408/8aed6eaa/attachment.pgp>
More information about the mesa-dev
mailing list