anv: more correctly handle null pipeline states
it's not necessary to check whether dynamic states are set before the null checks since any issues there would be VU errors Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22236>
This commit is contained in:
committed by
Marge Bot
parent
fef493f745
commit
589fc441c3
@@ -791,7 +791,7 @@ emit_rs_state(struct anv_graphics_pipeline *pipeline,
|
||||
raster.ScissorRectangleEnable = true;
|
||||
|
||||
raster.ConservativeRasterizationEnable =
|
||||
rs->conservative_mode != VK_CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXT;
|
||||
rs && rs->conservative_mode != VK_CONSERVATIVE_RASTERIZATION_MODE_DISABLED_EXT;
|
||||
raster.APIMode = DX101;
|
||||
|
||||
GENX(3DSTATE_SF_pack)(NULL, pipeline->gfx8.sf, &sf);
|
||||
@@ -1847,7 +1847,6 @@ genX(graphics_pipeline_emit)(struct anv_graphics_pipeline *pipeline,
|
||||
enum intel_urb_deref_block_size urb_deref_block_size;
|
||||
emit_urb_setup(pipeline, &urb_deref_block_size);
|
||||
|
||||
assert(state->rs != NULL);
|
||||
emit_rs_state(pipeline, state->ia, state->rs, state->ms, state->rp,
|
||||
urb_deref_block_size);
|
||||
emit_ms_state(pipeline, state->ms);
|
||||
|
||||
Reference in New Issue
Block a user