[Mesa-dev] [PATCH 2/7] i965: Combine GL_TEXTURE_CUBE_MAP_ARRAY case with the other array cases.

Kenneth Graunke kenneth at whitecape.org
Tue Jul 2 11:49:37 PDT 2013


These do the exact same thing; combining them is tidier.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_tex_layout.c | 7 ++-----
 1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/mesa/drivers/dri/i965/brw_tex_layout.c b/src/mesa/drivers/dri/i965/brw_tex_layout.c
index fc929f8..1772057 100644
--- a/src/mesa/drivers/dri/i965/brw_tex_layout.c
+++ b/src/mesa/drivers/dri/i965/brw_tex_layout.c
@@ -150,10 +150,6 @@ void
 brw_miptree_layout(struct intel_context *intel, struct intel_mipmap_tree *mt)
 {
    switch (mt->target) {
-   case GL_TEXTURE_CUBE_MAP_ARRAY:
-      brw_miptree_layout_texture_array(intel, mt);
-      break;
-
    case GL_TEXTURE_CUBE_MAP:
       if (intel->gen >= 5) {
 	 /* On Ironlake, cube maps are finally represented as just a series of
@@ -171,9 +167,10 @@ brw_miptree_layout(struct intel_context *intel, struct intel_mipmap_tree *mt)
       brw_miptree_layout_texture_3d(intel, mt);
       break;
 
-   case GL_TEXTURE_2D_ARRAY:
    case GL_TEXTURE_1D_ARRAY:
+   case GL_TEXTURE_2D_ARRAY:
    case GL_TEXTURE_2D_MULTISAMPLE_ARRAY:
+   case GL_TEXTURE_CUBE_MAP_ARRAY:
       brw_miptree_layout_texture_array(intel, mt);
       break;
 
-- 
1.8.3.1



More information about the mesa-dev mailing list