const struct ilo_dev *dev,
struct intel_winsys *winsys)
{
- int i;
+ unsigned i;
assert(ilo_is_zeroed(builder, sizeof(*builder)));
void
ilo_builder_reset(struct ilo_builder *builder)
{
- int i;
+ unsigned i;
for (i = 0; i < ILO_BUILDER_WRITER_COUNT; i++)
ilo_builder_writer_reset(builder, i);
bool
ilo_builder_begin(struct ilo_builder *builder)
{
- int i;
+ unsigned i;
for (i = 0; i < ILO_BUILDER_WRITER_COUNT; i++) {
if (!ilo_builder_writer_alloc_and_map(builder, i)) {
ilo_builder_end(struct ilo_builder *builder, unsigned *used)
{
struct ilo_builder_writer *bat;
- int i;
+ unsigned i;
ilo_builder_batch_patch_sba(builder);
struct toy_inst *inst;
struct toy_src desc, real_src[4];
struct toy_dst tmp, real_dst[4];
- int i;
+ unsigned i;
tsrc_transpose(idx, real_src);
const int grf_subreg = (idx.val32 & 1) * 16;
struct toy_src src;
struct toy_dst real_dst[4];
- int i;
+ unsigned i;
if (!fcc->variant->use_pcb || dim != 0 || idx.file != TOY_FILE_IMM ||
grf >= fcc->first_attr_grf)
struct toy_inst *inst;
struct toy_src desc;
struct toy_dst tmp, real_dst[4];
- int i;
+ unsigned i;
if (fs_lower_opcode_tgsi_const_pcb(fcc, dst, dim, idx))
return;
struct toy_src desc;
struct toy_inst *inst;
struct toy_dst tmp, real_dst[4];
- int i;
+ unsigned i;
if (fs_lower_opcode_tgsi_const_pcb(fcc, dst, dim, idx))
return;
{
struct toy_dst dst[4];
struct toy_src src[4];
- int i;
+ unsigned i;
tdst_transpose(inst->dst, dst);
tsrc_transpose(inst->src[0], src);
}
else {
struct toy_src src[4];
- int i;
+ unsigned i;
tsrc_transpose(inst->src[0], src);
/* mask out killed pixels */
static void
fs_setup_shader_out(struct ilo_shader *sh, const struct toy_tgsi *tgsi)
{
- int i;
+ unsigned i;
sh->out.count = tgsi->num_outputs;
for (i = 0; i < tgsi->num_outputs; i++) {
fs_setup_shader_in(struct ilo_shader *sh, const struct toy_tgsi *tgsi,
bool flatshade)
{
- int i;
+ unsigned i;
sh->in.count = tgsi->num_inputs;
for (i = 0; i < tgsi->num_inputs; i++) {
if (num_coords >= 3) {
struct toy_dst tmp, max;
struct toy_src abs_coords[3];
- int i;
+ unsigned i;
tmp = tc_alloc_tmp(tc);
max = tdst_writemask(tmp, TOY_WRITEMASK_W);
vs_collect_outputs(struct vs_compile_context *vcc, struct toy_src *outs)
{
const struct toy_tgsi *tgsi = &vcc->tgsi;
- int i;
+ unsigned i;
for (i = 0; i < vcc->shader->out.count; i++) {
const int slot = vcc->output_map[i];
static void
linear_scan_free_regs(struct linear_scan *ls, int reg, int count)
{
- int i;
+ unsigned i;
for (i = 0; i < count; i++)
ls->free_regs[ls->num_free_regs++] = reg + count - 1 - i;
static void
linear_scan_spill_range(struct linear_scan *ls, int first, int count)
{
- int i;
+ unsigned i;
for (i = 0; i < count; i++) {
struct linear_scan_live_interval *interval = &ls->intervals[first + i];