unsigned char *data_ptr;
const struct util_format_description *format_desc = util_format_description(PIPE_FORMAT_R32_UINT);
- if (params->unit > PIPE_MAX_SHADER_BUFFERS)
+ if (params->unit >= PIPE_MAX_SHADER_BUFFERS)
goto fail_write_all_zero;
bview = &sp_buf->sp_bview[params->unit];
int j, c;
const struct util_format_description *format_desc = util_format_description(PIPE_FORMAT_R32_UINT);
- if (params->unit > PIPE_MAX_SHADER_BUFFERS)
+ if (params->unit >= PIPE_MAX_SHADER_BUFFERS)
return;
bview = &sp_buf->sp_bview[params->unit];
bool just_read,
unsigned char *data_ptr,
uint qi,
- unsigned opcode,
+ enum tgsi_opcode opcode,
unsigned writemask,
float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE],
float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE])
static void
sp_tgsi_op(const struct tgsi_buffer *buffer,
const struct tgsi_buffer_params *params,
- unsigned opcode,
+ enum tgsi_opcode opcode,
const int s[TGSI_QUAD_SIZE],
float rgba[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE],
float rgba2[TGSI_NUM_CHANNELS][TGSI_QUAD_SIZE])
int j, c;
unsigned char *data_ptr;
- if (params->unit > PIPE_MAX_SHADER_BUFFERS)
+ if (params->unit >= PIPE_MAX_SHADER_BUFFERS)
return;
bview = &sp_buf->sp_bview[params->unit];
struct pipe_shader_buffer *bview;
struct softpipe_resource *spr;
- if (params->unit > PIPE_MAX_SHADER_BUFFERS)
+ if (params->unit >= PIPE_MAX_SHADER_BUFFERS)
return;
bview = &sp_buf->sp_bview[params->unit];