diff options
author | Paul Berry <[email protected]> | 2011-09-28 11:26:57 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2011-10-06 19:29:02 -0700 |
commit | 8f6920a7b69bd20f04f807e88c22cf1eb78b4e79 (patch) | |
tree | 79d41590ad5c958207bcec04d31773e670338573 /Android.mk | |
parent | a1b37ebe757f7a74d69612d7c32fbdbbe3405989 (diff) |
i965: Move ClipPlanesEnabled state to VS cache key.
Previous to this patch, setup_uniform_clipplane_values() was setting
up clip plane uniforms based on ctx->Transform.ClipPlanesEnabled, a
piece of state not stored in the vertex shader cache key. As a
result, a change to this piece of state might not trigger a necessary
vertex shader recompile.
The patch adds a field to the vertex shader cache key,
userclip_planes_enabled, to store the current value of
ctx->Transform.ClipPlanesEnabled. Also, it changes
setup_uniform_clipplane_values() to read from this new field, so that
it's manifestly clear that the vertex shader isn't depending on state
not stored in the cache key.
Note: when the vertex shader uses gl_ClipDistance, the VS backend
doesn't need to know which clip planes are in use, so we leave the
field as zero in that case to avoid unnecessary recompiles.
Fixes Piglit test vs-clip-vertex-enables.
Reviewed-by: Ian Romanick <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'Android.mk')
0 files changed, 0 insertions, 0 deletions