vk: Use true/false for RenderCacheReadWriteMode
authorKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 25 Aug 2015 22:58:21 +0000 (15:58 -0700)
committerKristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
Tue, 25 Aug 2015 22:58:21 +0000 (15:58 -0700)
This field in surface state is a bool, WriteOnlyCache is an enum from
GEN8.

Signed-off-by: Kristian Høgsberg Kristensen <kristian.h.kristensen@intel.com>
src/vulkan/gen7_state.c

index 042c4224c5f161904ea39a2179b625e910e28e2e..801716ea884c81a47dbb6b59137bd2759a6a01f5 100644 (file)
@@ -47,7 +47,7 @@ gen7_fill_buffer_surface_state(void *state, const struct anv_format *format,
       .SurfaceVerticalAlignment                 = VALIGN_4,
       .SurfaceHorizontalAlignment               = HALIGN_4,
       .TiledSurface                             = false,
-      .RenderCacheReadWriteMode                 = WriteOnlyCache,
+      .RenderCacheReadWriteMode                 = false,
       .SurfaceObjectControlState                = GEN7_MOCS,
       .Height                                   = (num_elements >> 7) & 0x3fff,
       .Width                                    = num_elements & 0x7f,