summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTapani Pälli <tapani.palli@intel.com>2019-10-04 13:38:49 +0300
committerTapani Pälli <tapani.palli@intel.com>2019-10-04 13:45:51 +0300
commit23c7441577d648ccd991ef2772d3a2b8e2641f64 (patch)
tree92789c256935114156c42f5be133ae4075fad9a4
parent78ac436d2365d468c44fe8b791b065b8de86c0d9 (diff)
anv/android: turn on CCS_E for external buffers WIP (!)yv12
This fixes one of my private testcases for AHW ... which is strange, it should and has been working before without this change :/ This is maybe not safe? In practice layout transitions should take care of required resolves, so maybe it actually is! Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
-rw-r--r--src/intel/vulkan/anv_image.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c
index 36c43f26634..c703be36aaf 100644
--- a/src/intel/vulkan/anv_image.c
+++ b/src/intel/vulkan/anv_image.c
@@ -858,15 +858,14 @@ resolve_ahw_image(struct anv_device *device,
image->format = anv_get_format(vk_format);
image->aspects = vk_format_aspects(image->vk_format);
image->n_planes = image->format->n_planes;
- image->ccs_e_compatible = false;
+ image->ccs_e_compatible = true;
uint32_t stride = desc.stride *
(isl_format_get_layout(isl_fmt)->bpb / 8);
uint32_t b;
for_each_bit(b, image->aspects) {
- VkResult r = make_surface(device, image, stride, isl_tiling_flags,
- ISL_SURF_USAGE_DISABLE_AUX_BIT, (1 << b));
+ VkResult r = make_surface(device, image, stride, isl_tiling_flags, 0, 0);
assert(r == VK_SUCCESS);
}
#endif