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:
Alejandro Piñeiro 2021-02-27 00:46:39 +01:00 committed by Marge Bot
parent f276efb2f8
commit ab252d73a9
3 changed files with 0 additions and 5 deletions

View File

@ -818,7 +818,6 @@ lower_intrinsic(nir_builder *b, nir_intrinsic_instr *instr,
case nir_intrinsic_load_push_constant:
lower_load_push_constant(b, instr, pipeline);
pipeline->use_push_constants = true;
return true;
case nir_intrinsic_vulkan_resource_index:

View File

@ -1671,9 +1671,6 @@ struct v3dv_pipeline {
/* If the pipeline should emit any of the stencil configuration packets */
bool emit_stencil_cfg[2];
/* If the pipeline is using push constants */
bool use_push_constants;
/* Blend state */
struct {
/* Per-RT bit mask with blend enables */

View File

@ -343,7 +343,6 @@ v3dv_write_uniforms_wg_offsets(struct v3dv_cmd_buffer *cmd_buffer,
break;
case QUNIFORM_UNIFORM:
assert(pipeline->use_push_constants);
cl_aligned_u32(&uniforms, cmd_buffer->push_constants_data[data]);
break;