i965: use _mesa_is_array_texture instead of _mesa_tex_target_is_array
authorAlejandro Piñeiro <apinheiro@igalia.com>
Sat, 5 Dec 2015 19:46:30 +0000 (20:46 +0100)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Mon, 7 Dec 2015 19:30:24 +0000 (20:30 +0100)
Both methods provide the same functionality, so one would be
removed.

v2: use _mesa_is_array_texture and not the other way (Brian Paul)

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c
src/mesa/drivers/dri/i965/gen8_surface_state.c

index 2aa395b2a92c7d701b86919ed773de9ec07da853..79182560a3d75603aedaeb6545774f29b124582d 100644 (file)
@@ -500,7 +500,7 @@ gen7_update_renderbuffer_surface(struct brw_context *brw,
       /* fallthrough */
    default:
       surftype = translate_tex_target(gl_target);
-      is_array = _mesa_tex_target_is_array(gl_target);
+      is_array = _mesa_is_array_texture(gl_target);
       break;
    }
 
index 80252a50433ff8cb731efc3f43805cb0e799c2c5..85e1285459cfc1b30c6ea9873edff9ec5baa43ff 100644 (file)
@@ -452,7 +452,7 @@ gen8_update_renderbuffer_surface(struct brw_context *brw,
       /* fallthrough */
    default:
       surf_type = translate_tex_target(gl_target);
-      is_array = _mesa_tex_target_is_array(gl_target);
+      is_array = _mesa_is_array_texture(gl_target);
       break;
    }