radv: remove unecessary radv_pipeline::uses_dynamic_stride
We can just rely on the dynamic states. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18007>
This commit is contained in:

committed by
Marge Bot

parent
56bb29cb93
commit
1d92ab921b
@@ -3628,7 +3628,8 @@ radv_write_vertex_descriptors(const struct radv_cmd_buffer *cmd_buffer,
|
||||
S_008F0C_DATA_FORMAT(V_008F0C_BUF_DATA_FORMAT_32);
|
||||
}
|
||||
|
||||
if (pipeline->uses_dynamic_stride) {
|
||||
if (pipeline->dynamic_states & (RADV_DYNAMIC_VERTEX_INPUT_BINDING_STRIDE |
|
||||
RADV_DYNAMIC_VERTEX_INPUT)) {
|
||||
stride = cmd_buffer->vertex_bindings[binding].stride;
|
||||
} else {
|
||||
stride = pipeline->binding_stride[binding];
|
||||
|
@@ -2156,10 +2156,6 @@ radv_pipeline_init_dynamic_state(struct radv_graphics_pipeline *pipeline,
|
||||
dynamic->line_stipple.pattern = info->rs.line_stipple_pattern;
|
||||
}
|
||||
|
||||
if (!(states & RADV_DYNAMIC_VERTEX_INPUT_BINDING_STRIDE) ||
|
||||
!(states & RADV_DYNAMIC_VERTEX_INPUT))
|
||||
pipeline->uses_dynamic_stride = true;
|
||||
|
||||
if (states & RADV_DYNAMIC_FRAGMENT_SHADING_RATE) {
|
||||
dynamic->fragment_shading_rate.size = info->fsr.size;
|
||||
for (int i = 0; i < 2; i++)
|
||||
|
@@ -2173,7 +2173,6 @@ struct radv_graphics_pipeline {
|
||||
bool disable_out_of_order_rast_for_occlusion;
|
||||
bool uses_drawid;
|
||||
bool uses_baseinstance;
|
||||
bool uses_dynamic_stride;
|
||||
bool uses_conservative_overestimate;
|
||||
bool negative_one_to_one;
|
||||
enum radv_depth_clamp_mode depth_clamp_mode;
|
||||
|
Reference in New Issue
Block a user