~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/drivers/softpipe/sp_compute.c

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
#include "sp_texture.h"
33
33
#include "sp_tex_sample.h"
34
34
#include "sp_tex_tile_cache.h"
35
 
#include "tgsi/tgsi_parse.h"
36
35
 
37
36
static void
38
37
cs_prepare(const struct sp_compute_shader *cs,
213
212
                       (struct tgsi_image *)softpipe->tgsi.image[PIPE_SHADER_COMPUTE],
214
213
                       (struct tgsi_buffer *)softpipe->tgsi.buffer[PIPE_SHADER_COMPUTE]);
215
214
            tgsi_exec_set_constant_buffers(machines[idx], PIPE_MAX_CONSTANT_BUFFERS,
216
 
                                           softpipe->mapped_constants[PIPE_SHADER_COMPUTE],
217
 
                                           softpipe->const_buffer_size[PIPE_SHADER_COMPUTE]);
 
215
                                           softpipe->mapped_constants[PIPE_SHADER_COMPUTE]);
218
216
            idx++;
219
217
         }
220
218
      }