diff options
author | Jakob Bornecrantz <[email protected]> | 2010-12-16 04:13:21 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2011-01-06 20:09:07 +0000 |
commit | ff0f0875135a7842e78fae002ee1187892f9405b (patch) | |
tree | 161c4397075d10357fecb8f65e95a23fec951256 /src/gallium/drivers/svga/svga_context.h | |
parent | f2d0f776b17947f2e84a82444771faa853a76b8b (diff) |
svga: Ensure that the wrong vdecls don't get used in swtnl path
The draw module set new state that didn't require swtnl which caused need_swtnl to
be unset. This caused the call from to svga_update_state(svga, SVGA_STATE_SWTNL_DRAW)
from the vbuf backend to overwrite the vdecls we setup there to be overwritten with
the real buffers vdecls.
Diffstat (limited to 'src/gallium/drivers/svga/svga_context.h')
-rw-r--r-- | src/gallium/drivers/svga/svga_context.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gallium/drivers/svga/svga_context.h b/src/gallium/drivers/svga/svga_context.h index 04e281a506d..d4970908b1e 100644 --- a/src/gallium/drivers/svga/svga_context.h +++ b/src/gallium/drivers/svga/svga_context.h @@ -288,6 +288,11 @@ struct svga_sw_state boolean need_swvfetch; boolean need_pipeline; boolean need_swtnl; + + /* Flag to make sure that need sw is on while + * updating state within a swtnl call. + */ + boolean in_swtnl_draw; }; |