radeonsi: remove unused si_cs_shader_state::uses_scratch
authorMarek Olšák <marek.olsak@amd.com>
Thu, 28 Apr 2022 10:01:15 +0000 (06:01 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 3 May 2022 15:11:08 +0000 (11:11 -0400)
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16215>

src/gallium/drivers/radeonsi/si_compute.c
src/gallium/drivers/radeonsi/si_pipe.h

index e63bc5e..9d31c8f 100644 (file)
@@ -565,7 +565,6 @@ static bool si_switch_compute_shader(struct si_context *sctx, struct si_compute
 
    sctx->cs_shader_state.emitted_program = program;
    sctx->cs_shader_state.offset = offset;
-   sctx->cs_shader_state.uses_scratch = config->scratch_bytes_per_wave != 0;
 
    *prefetch = true;
    return true;
index 0ce3d7e..be2ec21 100644 (file)
@@ -720,7 +720,6 @@ struct si_cs_shader_state {
    struct si_compute *emitted_program;
    unsigned offset;
    bool initialized;
-   bool uses_scratch;
 };
 
 struct si_samplers {