Commit 9248ba77 authored by Danylo Piliaiev's avatar Danylo Piliaiev 🇺🇦
Browse files

anv: Emit compute batch when changing from compute to 3d pipeline

Without doing this there is a geometry flickering in games which
use compute shaders - something goes wrong with binding tables
if there is MEDIA_INTERFACE_DESCRIPTOR_LOAD before 3d pipeline.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109630
          https://bugs.freedesktop.org/show_bug.cgi?id=109616
          https://bugs.freedesktop.org/show_bug.cgi?id=110295


Signed-off-by: Danylo Piliaiev's avatarDanylo Piliaiev <danylo.piliaiev@globallogic.com>
parent 11f219a5
Pipeline #29645 passed with stages
in 13 minutes and 7 seconds
......@@ -3954,6 +3954,13 @@ genX(flush_pipeline_select)(struct anv_cmd_buffer *cmd_buffer,
anv_batch_emit(&cmd_buffer->batch, GENX(3DSTATE_CC_STATE_POINTERS), t);
#endif
if (pipeline != GPGPU) {
struct anv_pipeline *compute_pipeline =
cmd_buffer->state.compute.base.pipeline;
if (compute_pipeline)
anv_batch_emit_batch(&cmd_buffer->batch, &compute_pipeline->batch);
}
/* From "BXML » GT » MI » vol1a GPU Overview » [Instruction]
* PIPELINE_SELECT [DevBWR+]":
*
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment