gen8/state: Remove SKL special-casing for MinimumArrayElement
authorNanley Chery <nanley.g.chery@intel.com>
Fri, 22 Jan 2016 23:07:12 +0000 (15:07 -0800)
committerNanley Chery <nanley.g.chery@intel.com>
Sat, 23 Jan 2016 01:10:14 +0000 (17:10 -0800)
MinimumArrayElement carries the same meaning for BDW and SKL.
Suggested by Jason.

No regressions in dEQP-VK.pipeline.image.view_type.cube_array.*
Fixes a number of cube tests, including cube_array_base_slice
and cube_base_slice tests.

src/vulkan/gen8_state.c

index 01099f4e3d95777dc0821295efcd42d706e6192e..ce142e6fb266094e2a0e873193466c8a708eeabf 100644 (file)
@@ -260,17 +260,10 @@ genX(fill_image_surface_state)(struct anv_device *device, void *state_map,
       template.RenderTargetViewExtent = template.Depth;
       break;
    case SURFTYPE_CUBE:
-      #if ANV_GENx10 >= 90
-         /* Like SURFTYPE_2D, but divided by 6. */
-         template.MinimumArrayElement = range->baseArrayLayer / 6;
-         template.Depth = range->layerCount / 6 - 1;
-         template.RenderTargetViewExtent = template.Depth;
-      #else
-         /* Same as SURFTYPE_2D */
-         template.MinimumArrayElement = range->baseArrayLayer;
-         template.Depth = range->layerCount / 6 - 1;
-         template.RenderTargetViewExtent = template.Depth;
-      #endif
+      template.MinimumArrayElement = range->baseArrayLayer;
+      /* Same as SURFTYPE_2D, but divided by 6 */
+      template.Depth = range->layerCount / 6 - 1;
+      template.RenderTargetViewExtent = template.Depth;
       break;
    case SURFTYPE_3D:
       template.MinimumArrayElement = range->baseArrayLayer;