v3dv/pipeline: remove pipeline->use_push_constants
In the past we used this boolean for several things, it is really superfluous right now. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9403>
This commit is contained in:
parent
f276efb2f8
commit
ab252d73a9
|
@ -818,7 +818,6 @@ lower_intrinsic(nir_builder *b, nir_intrinsic_instr *instr,
|
||||||
|
|
||||||
case nir_intrinsic_load_push_constant:
|
case nir_intrinsic_load_push_constant:
|
||||||
lower_load_push_constant(b, instr, pipeline);
|
lower_load_push_constant(b, instr, pipeline);
|
||||||
pipeline->use_push_constants = true;
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case nir_intrinsic_vulkan_resource_index:
|
case nir_intrinsic_vulkan_resource_index:
|
||||||
|
|
|
@ -1671,9 +1671,6 @@ struct v3dv_pipeline {
|
||||||
/* If the pipeline should emit any of the stencil configuration packets */
|
/* If the pipeline should emit any of the stencil configuration packets */
|
||||||
bool emit_stencil_cfg[2];
|
bool emit_stencil_cfg[2];
|
||||||
|
|
||||||
/* If the pipeline is using push constants */
|
|
||||||
bool use_push_constants;
|
|
||||||
|
|
||||||
/* Blend state */
|
/* Blend state */
|
||||||
struct {
|
struct {
|
||||||
/* Per-RT bit mask with blend enables */
|
/* Per-RT bit mask with blend enables */
|
||||||
|
|
|
@ -343,7 +343,6 @@ v3dv_write_uniforms_wg_offsets(struct v3dv_cmd_buffer *cmd_buffer,
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case QUNIFORM_UNIFORM:
|
case QUNIFORM_UNIFORM:
|
||||||
assert(pipeline->use_push_constants);
|
|
||||||
cl_aligned_u32(&uniforms, cmd_buffer->push_constants_data[data]);
|
cl_aligned_u32(&uniforms, cmd_buffer->push_constants_data[data]);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue