summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_image.c
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2016-02-24 11:38:14 -0800
committerJason Ekstrand <[email protected]>2016-02-27 10:26:14 -0800
commit7363024cbda0c513ad76d22580ce363f30ae1eda (patch)
treea8af2194636975a08f205164a55b4dbd7f0226c3 /src/intel/vulkan/anv_image.c
parente9d126f23b66751ae644c3125668ecf5d1e0f86b (diff)
anv: Fill out image_param structs at view creation time
Diffstat (limited to 'src/intel/vulkan/anv_image.c')
-rw-r--r--src/intel/vulkan/anv_image.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 4caab5804ae..72f29f1dba8 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -630,6 +630,9 @@ anv_image_view_init(struct anv_image_view *iview,
iview->bo->size - iview->offset, 1);
}
+ anv_image_view_fill_image_param(device, iview,
+ &iview->storage_image_param);
+
if (!device->info.has_llc)
anv_state_clflush(iview->storage_surface_state);
} else {
@@ -734,6 +737,8 @@ anv_CreateBufferView(VkDevice _device,
(storage_format == ISL_FORMAT_RAW ? 1 :
format->isl_layout->bs));
+ anv_buffer_view_fill_image_param(device, view,
+ &view->storage_image_param);
} else {
view->storage_surface_state = (struct anv_state){ 0 };
}