From 0a9473b32d5acf1b6051fe8dcae6de36089cfd26 Mon Sep 17 00:00:00 2001 From: "Thomas H.P. Andersen" Date: Thu, 27 Apr 2023 20:40:42 +0200 Subject: [PATCH] r600: remove unused code With the cleanup in 337dc7d76604e646f1a85615ab2d9d238427bf46 this code became unused. Fixes: 337dc7d76604 ("r600: remove TGSI code path") Reviewed-by: Gert Wollny Part-of: --- src/gallium/drivers/r600/r600_shader.c | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c index 244b023588c..c713dcdae84 100644 --- a/src/gallium/drivers/r600/r600_shader.c +++ b/src/gallium/drivers/r600/r600_shader.c @@ -90,30 +90,6 @@ The compiler must issue the source argument to slots z, y, and x PS - face_gpr.z = SampleMask face_gpr.w = SampleID */ -#define R600_SHADER_BUFFER_INFO_SEL (512 + R600_BUFFER_INFO_OFFSET / 16) -static int r600_shader_from_tgsi(struct r600_context *rctx, - struct r600_pipe_shader *pipeshader, - union r600_shader_key key); - -static void r600_add_gpr_array(struct r600_shader *ps, int start_gpr, - int size, unsigned comp_mask) { - - if (!size) - return; - - if (ps->num_arrays == ps->max_arrays) { - ps->max_arrays += 64; - ps->arrays = realloc(ps->arrays, ps->max_arrays * - sizeof(struct r600_shader_array)); - } - - int n = ps->num_arrays; - ++ps->num_arrays; - - ps->arrays[n].comp_mask = comp_mask; - ps->arrays[n].gpr_start = start_gpr; - ps->arrays[n].gpr_count = size; -} static void r600_dump_streamout(struct pipe_stream_output_info *so) {