summaryrefslogtreecommitdiffstats
path: root/src/vulkan/gen7_state.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-11-16 12:29:07 -0800
committerJason Ekstrand <[email protected]>2015-11-16 12:29:09 -0800
commitde54b4b18fea9358cc6f0e7dc9f64256be00be06 (patch)
treee679f5ee3fe2d5ee4e3a8784ef4b1871d5de5d5d /src/vulkan/gen7_state.c
parentcb9e2305f87e7f3bad5a1b619f5679b335052d46 (diff)
anv: Only include the pack headers where needed
Previously, we were including gen7_pack.h, gen75_pack.h, and gen8_pack.h in anv_private.h. As we add more gens, this is going to become untenable. This commit moves things around so that we only use the pack headers when and if we need them.
Diffstat (limited to 'src/vulkan/gen7_state.c')
-rw-r--r--src/vulkan/gen7_state.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/vulkan/gen7_state.c b/src/vulkan/gen7_state.c
index a53b6e3faf3..596e232ab6f 100644
--- a/src/vulkan/gen7_state.c
+++ b/src/vulkan/gen7_state.c
@@ -29,6 +29,8 @@
#include "anv_private.h"
+#include "gen7_pack.h"
+
void
gen7_fill_buffer_surface_state(void *state, const struct anv_format *format,
uint32_t offset, uint32_t range, uint32_t stride)
@@ -272,7 +274,7 @@ gen7_image_view_init(struct anv_image_view *iview,
iview->color_rt_surface_state =
gen7_alloc_surface_state(device, cmd_buffer);
- surface_state.RenderCacheReadWriteMode = WriteOnlyCache;
+ surface_state.RenderCacheReadWriteMode = 0; /* Write only */
/* For render target surfaces, the hardware interprets field MIPCount/LOD as
* LOD. The Broadwell PRM says: