summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_vs_exec.c
diff options
context:
space:
mode:
authorBrian Paul <brianp@vmware.com>2016-04-25 15:55:01 -0600
committerBrian Paul <brianp@vmware.com>2016-04-27 10:23:19 -0600
commit489df4a71aca99b2eebc62c02215a5860def944d (patch)
treec127ec4141388b0b7328f872f49125f4a32bec36 /src/gallium/auxiliary/draw/draw_vs_exec.c
parentf93802c465b021592837c846d713146ddc1a8155 (diff)
downloadexternal_mesa3d-489df4a71aca99b2eebc62c02215a5860def944d.tar.gz
external_mesa3d-489df4a71aca99b2eebc62c02215a5860def944d.tar.bz2
external_mesa3d-489df4a71aca99b2eebc62c02215a5860def944d.zip
draw: s/Elements/ARRAY_SIZE/
Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_exec.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs_exec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_exec.c b/src/gallium/auxiliary/draw/draw_vs_exec.c
index 483ee90f2a..5125eb4dff 100644
--- a/src/gallium/auxiliary/draw/draw_vs_exec.c
+++ b/src/gallium/auxiliary/draw/draw_vs_exec.c
@@ -105,7 +105,7 @@ vs_exec_run_linear( struct draw_vertex_shader *shader,
if (shader->info.uses_instanceid) {
unsigned i = machine->SysSemanticToIndex[TGSI_SEMANTIC_INSTANCEID];
- assert(i < Elements(machine->SystemValue));
+ assert(i < ARRAY_SIZE(machine->SystemValue));
for (j = 0; j < TGSI_QUAD_SIZE; j++)
machine->SystemValue[i].xyzw[0].i[j] = shader->draw->instance_id;
}
@@ -129,19 +129,19 @@ vs_exec_run_linear( struct draw_vertex_shader *shader,
if (shader->info.uses_vertexid) {
unsigned vid = machine->SysSemanticToIndex[TGSI_SEMANTIC_VERTEXID];
- assert(vid < Elements(machine->SystemValue));
+ assert(vid < ARRAY_SIZE(machine->SystemValue));
machine->SystemValue[vid].xyzw[0].i[j] = i + j;
/* XXX this should include base vertex. Where to get it??? */
}
if (shader->info.uses_basevertex) {
unsigned vid = machine->SysSemanticToIndex[TGSI_SEMANTIC_BASEVERTEX];
- assert(vid < Elements(machine->SystemValue));
+ assert(vid < ARRAY_SIZE(machine->SystemValue));
machine->SystemValue[vid].xyzw[0].i[j] = 0;
/* XXX Where to get it??? */
}
if (shader->info.uses_vertexid_nobase) {
unsigned vid = machine->SysSemanticToIndex[TGSI_SEMANTIC_VERTEXID_NOBASE];
- assert(vid < Elements(machine->SystemValue));
+ assert(vid < ARRAY_SIZE(machine->SystemValue));
machine->SystemValue[vid].xyzw[0].i[j] = i + j;
}