mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 18:18:06 +02:00
anv: fix bitfield checks in gfx runtime flushing
s/SET/TEST/
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: 50f6903bd9 ("anv: add new low level emission & dirty state tracking")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28387>
This commit is contained in:
parent
341a9e9194
commit
601d219257
1 changed files with 3 additions and 3 deletions
|
|
@ -1223,12 +1223,12 @@ genX(cmd_buffer_flush_gfx_runtime_state)(struct anv_cmd_buffer *cmd_buffer)
|
|||
* number of viewport programmed previously was larger than what we need
|
||||
* now, no need to reemit we can just keep the old programmed values.
|
||||
*/
|
||||
if (BITSET_SET(hw_state->dirty, ANV_GFX_STATE_VIEWPORT_SF_CLIP) ||
|
||||
if (BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_VIEWPORT_SF_CLIP) ||
|
||||
hw_state->vp_sf_clip.count < dyn->vp.viewport_count) {
|
||||
hw_state->vp_sf_clip.count = dyn->vp.viewport_count;
|
||||
BITSET_SET(hw_state->dirty, ANV_GFX_STATE_VIEWPORT_SF_CLIP);
|
||||
}
|
||||
if (BITSET_SET(hw_state->dirty, ANV_GFX_STATE_VIEWPORT_CC) ||
|
||||
if (BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_VIEWPORT_CC) ||
|
||||
hw_state->vp_cc.count < dyn->vp.viewport_count) {
|
||||
hw_state->vp_cc.count = dyn->vp.viewport_count;
|
||||
BITSET_SET(hw_state->dirty, ANV_GFX_STATE_VIEWPORT_CC);
|
||||
|
|
@ -1294,7 +1294,7 @@ genX(cmd_buffer_flush_gfx_runtime_state)(struct anv_cmd_buffer *cmd_buffer)
|
|||
* number of viewport programmed previously was larger than what we need
|
||||
* now, no need to reemit we can just keep the old programmed values.
|
||||
*/
|
||||
if (BITSET_SET(hw_state->dirty, ANV_GFX_STATE_SCISSOR) ||
|
||||
if (BITSET_TEST(hw_state->dirty, ANV_GFX_STATE_SCISSOR) ||
|
||||
hw_state->scissor.count < dyn->vp.scissor_count) {
|
||||
hw_state->scissor.count = dyn->vp.scissor_count;
|
||||
BITSET_SET(hw_state->dirty, ANV_GFX_STATE_SCISSOR);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue