glsl: replace Elements() with ARRAY_SIZE()
Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
This commit is contained in:
@@ -123,7 +123,7 @@ calculate_iterations(ir_rvalue *from, ir_rvalue *to, ir_rvalue *increment,
|
||||
const int bias[] = { -1, 0, 1 };
|
||||
bool valid_loop = false;
|
||||
|
||||
for (unsigned i = 0; i < Elements(bias); i++) {
|
||||
for (unsigned i = 0; i < ARRAY_SIZE(bias); i++) {
|
||||
/* Increment may be of type int, uint or float. */
|
||||
switch (increment->type->base_type) {
|
||||
case GLSL_TYPE_INT:
|
||||
|
||||
Reference in New Issue
Block a user