panfrost: Don't set dirty_mask for constant buffers

It is unused.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11700>
This commit is contained in:
Icecream95 2021-07-03 19:52:21 +12:00 committed by Marge Bot
parent f94c796741
commit d0e90c336d
3 changed files with 0 additions and 5 deletions

View file

@ -1242,8 +1242,6 @@ panfrost_emit_const_buf(struct panfrost_batch *batch,
}
}
buf->dirty_mask = 0;
if (ss->info.push.count == 0)
return ubos.gpu;

View file

@ -1282,12 +1282,10 @@ panfrost_set_constant_buffer(
if (unlikely(!buf)) {
pbuf->enabled_mask &= ~mask;
pbuf->dirty_mask &= ~mask;
return;
}
pbuf->enabled_mask |= mask;
pbuf->dirty_mask |= mask;
ctx->dirty_shader[shader] |= PAN_DIRTY_STAGE_CONST;
}

View file

@ -83,7 +83,6 @@ enum pan_dirty_shader {
struct panfrost_constant_buffer {
struct pipe_constant_buffer cb[PIPE_MAX_CONSTANT_BUFFERS];
uint32_t enabled_mask;
uint32_t dirty_mask;
};
struct panfrost_query {