mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
anv/cmd_buffer: Enable render pass awareness
v2: Update cmd_state_reset (Jason Ekstrand) Signed-off-by: Nanley Chery <nanley.g.chery@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
c0223d052b
commit
c78a959bcf
2 changed files with 10 additions and 0 deletions
|
|
@ -131,6 +131,9 @@ anv_cmd_state_reset(struct anv_cmd_buffer *cmd_buffer)
|
|||
state->descriptors_dirty = 0;
|
||||
state->push_constants_dirty = 0;
|
||||
state->pipeline = NULL;
|
||||
state->framebuffer = NULL;
|
||||
state->pass = NULL;
|
||||
state->subpass = NULL;
|
||||
state->push_constant_stages = 0;
|
||||
state->restart_index = UINT32_MAX;
|
||||
state->dynamic = default_dynamic_state;
|
||||
|
|
|
|||
|
|
@ -2452,4 +2452,11 @@ void genX(CmdEndRenderPass)(
|
|||
#ifndef NDEBUG
|
||||
anv_dump_add_framebuffer(cmd_buffer, cmd_buffer->state.framebuffer);
|
||||
#endif
|
||||
|
||||
/* Remove references to render pass specific state. This enables us to
|
||||
* detect whether or not we're in a renderpass.
|
||||
*/
|
||||
cmd_buffer->state.framebuffer = NULL;
|
||||
cmd_buffer->state.pass = NULL;
|
||||
cmd_buffer->state.subpass = NULL;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue