if (ir->location == FRAG_RESULT_COLOR) {
/* Writing gl_FragColor outputs to all color regions. */
- for (int i = 0; i < MAX2(c->key.nr_color_regions, 1); i++) {
+ for (unsigned int i = 0; i < MAX2(c->key.nr_color_regions, 1); i++) {
this->outputs[i] = *reg;
}
} else if (ir->location == FRAG_RESULT_DEPTH) {
}
if (ir->coordinate && needs_gl_clamp) {
- for (int i = 0; i < MIN2(ir->coordinate->type->vector_elements, 3); i++) {
+ for (unsigned int i = 0;
+ i < MIN2(ir->coordinate->type->vector_elements, 3); i++) {
if (c->key.tex.gl_clamp_mask[i] & (1 << sampler)) {
fs_reg chan = coordinate;
chan.reg_offset += i;
namespace brw {
static void
-assign(int *reg_hw_locations, reg *reg)
+assign(unsigned int *reg_hw_locations, reg *reg)
{
if (reg->file == GRF) {
reg->reg = reg_hw_locations[reg->reg];
void
vec4_visitor::reg_allocate_trivial()
{
- int hw_reg_mapping[this->virtual_grf_count];
+ unsigned int hw_reg_mapping[this->virtual_grf_count];
bool virtual_grf_used[this->virtual_grf_count];
int i;
int next;
void
vec4_visitor::reg_allocate()
{
- int hw_reg_mapping[virtual_grf_count];
+ unsigned int hw_reg_mapping[virtual_grf_count];
int first_assigned_grf = this->first_non_payload_grf;
int base_reg_count = max_grf - first_assigned_grf;
int class_sizes[base_reg_count];