diff options
author | Rob Clark <[email protected]> | 2013-04-25 11:17:02 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2013-04-25 15:10:56 -0400 |
commit | f706d4d340f0778de23062ef13c54b07bfac7967 (patch) | |
tree | 15599da1cd1a0ce00b310992faebbdf4547967e3 /src/gallium/drivers/freedreno/freedreno_context.h | |
parent | 578987ce1c17d17cfa538eb70d07a751fda55eb1 (diff) |
freedreno: don't patch and re-emit same shader as much
New textures or vertex buffers don't always require patching and
re-emitting the shaders. So do a better job of figuring out when we
actually have to patch the shader.
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.h')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_context.h | 29 |
1 files changed, 15 insertions, 14 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.h b/src/gallium/drivers/freedreno/freedreno_context.h index 4ed31593d41..c3a85b5c7ab 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.h +++ b/src/gallium/drivers/freedreno/freedreno_context.h @@ -144,23 +144,24 @@ struct fd_context { /* which state objects need to be re-emit'd: */ enum { - FD_DIRTY_BLEND = (1 << 0), - FD_DIRTY_RASTERIZER = (1 << 1), - FD_DIRTY_ZSA = (1 << 2), - FD_DIRTY_FRAGTEX = (1 << 3), - FD_DIRTY_VERTTEX = (1 << 4), - FD_DIRTY_PROG = (1 << 5), - FD_DIRTY_VTX = (1 << 6), - FD_DIRTY_BLEND_COLOR = (1 << 7), - FD_DIRTY_STENCIL_REF = (1 << 8), - FD_DIRTY_SAMPLE_MASK = (1 << 9), + FD_DIRTY_BLEND = (1 << 0), + FD_DIRTY_RASTERIZER = (1 << 1), + FD_DIRTY_ZSA = (1 << 2), + FD_DIRTY_FRAGTEX = (1 << 3), + FD_DIRTY_VERTTEX = (1 << 4), + FD_DIRTY_TEXSTATE = (1 << 5), + FD_DIRTY_PROG = (1 << 6), + FD_DIRTY_BLEND_COLOR = (1 << 7), + FD_DIRTY_STENCIL_REF = (1 << 8), + FD_DIRTY_SAMPLE_MASK = (1 << 9), FD_DIRTY_FRAMEBUFFER = (1 << 10), - FD_DIRTY_STIPPLE = (1 << 12), + FD_DIRTY_STIPPLE = (1 << 11), FD_DIRTY_VIEWPORT = (1 << 12), FD_DIRTY_CONSTBUF = (1 << 13), - FD_DIRTY_VERTEXBUF = (1 << 14), - FD_DIRTY_INDEXBUF = (1 << 15), - FD_DIRTY_SCISSOR = (1 << 16), + FD_DIRTY_VTXSTATE = (1 << 14), + FD_DIRTY_VTXBUF = (1 << 15), + FD_DIRTY_INDEXBUF = (1 << 16), + FD_DIRTY_SCISSOR = (1 << 17), } dirty; struct fd_blend_stateobj *blend; |