anv: Drop URB entry output read handling in 3DSTATE_XS.
Commit 566a0c43f0
started setting the
3DSTATE_SBE bit to override these values with the one calculated there.
So, they're dead. Stop setting them.
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -1109,22 +1109,6 @@ get_scratch_space(const struct anv_shader_bin *bin)
|
|||||||
return ffs(bin->prog_data->total_scratch / 2048);
|
return ffs(bin->prog_data->total_scratch / 2048);
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint32_t
|
|
||||||
get_urb_output_offset()
|
|
||||||
{
|
|
||||||
/* Skip the VUE header and position slots */
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
UNUSED static uint32_t
|
|
||||||
get_urb_output_length(const struct anv_shader_bin *bin)
|
|
||||||
{
|
|
||||||
const struct brw_vue_prog_data *prog_data =
|
|
||||||
(const struct brw_vue_prog_data *)bin->prog_data;
|
|
||||||
|
|
||||||
return (prog_data->vue_map.num_slots + 1) / 2 - get_urb_output_offset();
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
emit_3dstate_vs(struct anv_pipeline *pipeline)
|
emit_3dstate_vs(struct anv_pipeline *pipeline)
|
||||||
{
|
{
|
||||||
@@ -1161,9 +1145,6 @@ emit_3dstate_vs(struct anv_pipeline *pipeline)
|
|||||||
vs_prog_data->base.base.dispatch_grf_start_reg;
|
vs_prog_data->base.base.dispatch_grf_start_reg;
|
||||||
|
|
||||||
#if GEN_GEN >= 8
|
#if GEN_GEN >= 8
|
||||||
vs.VertexURBEntryOutputReadOffset = get_urb_output_offset();
|
|
||||||
vs.VertexURBEntryOutputLength = get_urb_output_length(vs_bin);
|
|
||||||
|
|
||||||
vs.UserClipDistanceClipTestEnableBitmask =
|
vs.UserClipDistanceClipTestEnableBitmask =
|
||||||
vs_prog_data->base.clip_distance_mask;
|
vs_prog_data->base.clip_distance_mask;
|
||||||
vs.UserClipDistanceCullTestEnableBitmask =
|
vs.UserClipDistanceCullTestEnableBitmask =
|
||||||
@@ -1264,10 +1245,6 @@ emit_3dstate_hs_te_ds(struct anv_pipeline *pipeline,
|
|||||||
tes_prog_data->base.base.dispatch_grf_start_reg;
|
tes_prog_data->base.base.dispatch_grf_start_reg;
|
||||||
|
|
||||||
#if GEN_GEN >= 8
|
#if GEN_GEN >= 8
|
||||||
ds.VertexURBEntryOutputReadOffset = 1;
|
|
||||||
ds.VertexURBEntryOutputLength =
|
|
||||||
(tes_prog_data->base.vue_map.num_slots + 1) / 2 - 1;
|
|
||||||
|
|
||||||
ds.DispatchMode =
|
ds.DispatchMode =
|
||||||
tes_prog_data->base.dispatch_mode == DISPATCH_MODE_SIMD8 ?
|
tes_prog_data->base.dispatch_mode == DISPATCH_MODE_SIMD8 ?
|
||||||
DISPATCH_MODE_SIMD8_SINGLE_PATCH :
|
DISPATCH_MODE_SIMD8_SINGLE_PATCH :
|
||||||
@@ -1340,9 +1317,6 @@ emit_3dstate_gs(struct anv_pipeline *pipeline)
|
|||||||
gs_prog_data->base.base.dispatch_grf_start_reg;
|
gs_prog_data->base.base.dispatch_grf_start_reg;
|
||||||
|
|
||||||
#if GEN_GEN >= 8
|
#if GEN_GEN >= 8
|
||||||
gs.VertexURBEntryOutputReadOffset = get_urb_output_offset();
|
|
||||||
gs.VertexURBEntryOutputLength = get_urb_output_length(gs_bin);
|
|
||||||
|
|
||||||
gs.UserClipDistanceClipTestEnableBitmask =
|
gs.UserClipDistanceClipTestEnableBitmask =
|
||||||
gs_prog_data->base.clip_distance_mask;
|
gs_prog_data->base.clip_distance_mask;
|
||||||
gs.UserClipDistanceCullTestEnableBitmask =
|
gs.UserClipDistanceCullTestEnableBitmask =
|
||||||
|
Reference in New Issue
Block a user