}
void
-fs_visitor::setup_vector_uniform_values(const gl_constant_value *values, unsigned n)
+fs_visitor::setup_vec4_uniform_value(const gl_constant_value *values,
+ unsigned n)
{
static const gl_constant_value zero = { 0 };
struct brw_reg interp_reg(int location, int channel);
- virtual void setup_vector_uniform_values(const gl_constant_value *values,
- unsigned n);
+ virtual void setup_vec4_uniform_value(const gl_constant_value *values,
+ unsigned n);
int implied_mrf_writes(fs_inst *inst);
/* Upload the brw_image_param structure. The order is expected to match
* the BRW_IMAGE_PARAM_*_OFFSET defines.
*/
- setup_vector_uniform_values(
+ setup_vec4_uniform_value(
(const gl_constant_value *)¶m->surface_idx, 1);
- setup_vector_uniform_values(
+ setup_vec4_uniform_value(
(const gl_constant_value *)param->offset, 2);
- setup_vector_uniform_values(
+ setup_vec4_uniform_value(
(const gl_constant_value *)param->size, 3);
- setup_vector_uniform_values(
+ setup_vec4_uniform_value(
(const gl_constant_value *)param->stride, 4);
- setup_vector_uniform_values(
+ setup_vec4_uniform_value(
(const gl_constant_value *)param->tiling, 3);
- setup_vector_uniform_values(
+ setup_vec4_uniform_value(
(const gl_constant_value *)param->swizzling, 2);
brw_mark_surface_used(
virtual void invalidate_live_intervals() = 0;
- virtual void setup_vector_uniform_values(const gl_constant_value *values,
- unsigned n) = 0;
+ virtual void setup_vec4_uniform_value(const gl_constant_value *values,
+ unsigned n) = 0;
void setup_image_uniform_values(const gl_uniform_storage *storage);
};
void fail(const char *msg, ...);
void setup_uniform_clipplane_values(gl_clip_plane *clip_planes);
- virtual void setup_vector_uniform_values(const gl_constant_value *values,
- unsigned n);
+ virtual void setup_vec4_uniform_value(const gl_constant_value *values,
+ unsigned n);
void setup_uniform_values(ir_variable *ir);
void setup_builtin_uniform_values(ir_variable *ir);
int setup_uniforms(int payload_reg);
}
void
-vec4_visitor::setup_vector_uniform_values(const gl_constant_value *values,
- unsigned n)
+vec4_visitor::setup_vec4_uniform_value(const gl_constant_value *values,
+ unsigned n)
{
static const gl_constant_value zero = { 0 };
const unsigned vector_size = storage->type->vector_elements;
for (unsigned s = 0; s < vector_count; s++)
- setup_vector_uniform_values(&storage->storage[s * vector_size],
- vector_size);
+ setup_vec4_uniform_value(&storage->storage[s * vector_size],
+ vector_size);
}
}