mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-12-13 20:24:23 +08:00
anv: fix conditional render for vkCmdDrawIndirectByteCountEXT
We just forgot about conditional render for this entry point. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes:2be89cbd82
("anv: Implement vkCmdDrawIndirectByteCountEXT") Tested-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14891> (cherry picked from commit93a90fc85d
)
This commit is contained in:
parent
23094f01be
commit
38c023e16b
@ -9814,7 +9814,7 @@
|
||||
"description": "anv: fix conditional render for vkCmdDrawIndirectByteCountEXT",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "2be89cbd826f9ac2703127025714a55595de33d3"
|
||||
},
|
||||
|
@ -4206,6 +4206,9 @@ void genX(CmdDrawIndirectByteCountEXT)(
|
||||
|
||||
genX(cmd_buffer_flush_state)(cmd_buffer);
|
||||
|
||||
if (cmd_buffer->state.conditional_render_enabled)
|
||||
genX(cmd_emit_conditional_render_predicate)(cmd_buffer);
|
||||
|
||||
if (vs_prog_data->uses_firstvertex ||
|
||||
vs_prog_data->uses_baseinstance)
|
||||
emit_base_vertex_instance(cmd_buffer, firstVertex, firstInstance);
|
||||
@ -4240,6 +4243,7 @@ void genX(CmdDrawIndirectByteCountEXT)(
|
||||
|
||||
anv_batch_emit(&cmd_buffer->batch, GENX(3DPRIMITIVE), prim) {
|
||||
prim.IndirectParameterEnable = true;
|
||||
prim.PredicateEnable = cmd_buffer->state.conditional_render_enabled;
|
||||
prim.VertexAccessType = SEQUENTIAL;
|
||||
prim.PrimitiveTopologyType = cmd_buffer->state.gfx.primitive_topology;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user