summaryrefslogtreecommitdiffstats
path: root/src/amd/vulkan/radv_cmd_buffer.c
diff options
context:
space:
mode:
authorBas Nieuwenhuizen <[email protected]>2017-05-15 01:23:24 +0200
committerBas Nieuwenhuizen <[email protected]>2017-05-22 20:07:21 +0200
commit0628580eff6110eda71e33ee608c633266bfdeff (patch)
treeb19b0772afc786186afcaf788344cf64661eb3bb /src/amd/vulkan/radv_cmd_buffer.c
parent62e182acd0b20eeb8ed3628048000b6ea4263f11 (diff)
radv: Specify semantics of HTILE layout helpers.
And correct implementation to specify only what we support. Signed-off-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index a9be8974271..e0574f5cbf1 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -1104,6 +1104,10 @@ radv_emit_framebuffer_state(struct radv_cmd_buffer *cmd_buffer)
struct radv_image *image = att->attachment->image;
cmd_buffer->device->ws->cs_add_buffer(cmd_buffer->cs, att->attachment->bo, 8);
+ /* We currently don't support writing decompressed HTILE */
+ assert(radv_layout_has_htile(image, layout) ==
+ radv_layout_is_htile_compressed(image, layout));
+
radv_emit_fb_ds_state(cmd_buffer, &att->ds, image, layout);
if (att->ds.offset_scale != cmd_buffer->state.offset_scale) {