diff options
author | Brian Paul <[email protected]> | 2017-12-23 14:16:52 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2017-12-26 21:43:37 -0700 |
commit | 1e0b64ced978a952bc6061cda3db2bdcfa0879d7 (patch) | |
tree | 9970a199014f0cc728e7d45e76adf20231d258ad /src/gallium/drivers/svga/svga_context.h | |
parent | ac78ab951a0826732b4f0dd7d4c4a11d6b4bd30f (diff) |
svga: fix shadow comparison failures
In some cases, We do shadow comparison cases in the fragment shader
instead of with texture sampler state. But when we do so, we must
disable the shadow comparison test in the sampler state. As it
was, we were doing the comparison twice, which resulted in nonsense.
Also, we had the texcoord and texel value swapped in the comparison
instruction.
Fixes about 38 Piglit tex-miplevel-selection tests.
Reviewed-by: Neha Bhende <[email protected]>
Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h index 80c59c05e86..fd0c31222e6 100644 --- a/src/gallium/drivers/svga/svga_context.h +++ b/src/gallium/drivers/svga/svga_context.h @@ -211,7 +211,7 @@ struct svga_sampler_state { unsigned view_min_lod; unsigned view_max_lod; - SVGA3dSamplerId id; + SVGA3dSamplerId id[2]; }; |