pvr: Use PVRX(TA_PASSTYPE) for pvr_fragment_shader_state.pass_type
authorMatt Coster <matt.coster@imgtec.com>
Fri, 11 Nov 2022 10:55:55 +0000 (10:55 +0000)
committerMarge Bot <emma+marge@anholt.net>
Fri, 11 Nov 2022 16:48:51 +0000 (16:48 +0000)
Replaces the current uint32_t value.

Signed-off-by: Matt Coster <matt.coster@imgtec.com>
Reviewed-by: Karmjit Mahil <Karmjit.Mahil@imgtec.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19342>

src/imagination/vulkan/pvr_pipeline.c
src/imagination/vulkan/pvr_private.h

index 778e30b..2795a94 100644 (file)
@@ -1429,7 +1429,7 @@ pvr_fragment_state_init(struct pvr_graphics_pipeline *gfx_pipeline,
    fragment_state->stage_state.has_side_effects = false;
    fragment_state->stage_state.empty_program = false;
 
-   fragment_state->pass_type = 0;
+   fragment_state->pass_type = PVRX(TA_PASSTYPE_OPAQUE);
    fragment_state->entry_offset = 0;
 }
 
index b6837de..5d9b36a 100644 (file)
@@ -1185,7 +1185,7 @@ struct pvr_fragment_shader_state {
    struct pvr_pipeline_stage_state stage_state;
    /* FIXME: Move this into stage_state? */
    struct pvr_stage_allocation_descriptor_state descriptor_state;
-   uint32_t pass_type;
+   enum PVRX(TA_PASSTYPE) pass_type;
 
    struct pvr_pds_upload pds_coeff_program;
    struct pvr_pds_upload pds_fragment_program;