mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-10 01:18:18 +02:00
anv: skip writing xfb buffer if we get null information
Cc: mesa-stable Closes: https://gitlab.freedesktop.org/mesa/mesa/-/work_items/15582 Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Sagar Ghuge <sagar.ghuge@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/41930>
This commit is contained in:
parent
095e4f5f1b
commit
fdb9ce6087
1 changed files with 5 additions and 0 deletions
|
|
@ -2443,6 +2443,10 @@ void genX(CmdEndTransformFeedback2EXT)(
|
|||
"end transform feedback");
|
||||
genX(cmd_buffer_apply_pipe_flushes)(cmd_buffer);
|
||||
|
||||
/* No address provided, nothing to write. */
|
||||
if (!pCounterInfos)
|
||||
goto end_xfb;
|
||||
|
||||
for (uint32_t cb_idx = 0; cb_idx < counterRangeCount; cb_idx++) {
|
||||
unsigned idx = firstCounterRange + cb_idx;
|
||||
|
||||
|
|
@ -2460,6 +2464,7 @@ void genX(CmdEndTransformFeedback2EXT)(
|
|||
}
|
||||
}
|
||||
|
||||
end_xfb:
|
||||
trace_intel_end_xfb(&cmd_buffer->trace);
|
||||
|
||||
cmd_buffer->state.xfb_enabled = false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue