summaryrefslogtreecommitdiffstats
path: root/src/intel/vulkan/anv_meta.c
diff options
context:
space:
mode:
authorNanley Chery <[email protected]>2016-03-09 11:31:49 -0800
committerNanley Chery <[email protected]>2016-03-16 10:56:22 -0700
commit997a873f0c67108acf5733538c4475285e3f9b2e (patch)
treea060a1432a3944a8e1e76a6568a2d202a6e88b07 /src/intel/vulkan/anv_meta.c
parent2d8c6321177a92f6f1383adc1e75dde1610cfc64 (diff)
anv/blit2d: Customize meta blit structs and functions for blit2d API
* Add fields in meta struct * Add support in meta init/teardown * Switch to custom meta_emit_blit2d() Signed-off-by: Nanley Chery <[email protected]> Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/intel/vulkan/anv_meta.c')
-rw-r--r--src/intel/vulkan/anv_meta.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/intel/vulkan/anv_meta.c b/src/intel/vulkan/anv_meta.c
index 82944ea1a92..1ac0306e031 100644
--- a/src/intel/vulkan/anv_meta.c
+++ b/src/intel/vulkan/anv_meta.c
@@ -150,8 +150,14 @@ anv_device_init_meta(struct anv_device *device)
if (result != VK_SUCCESS)
goto fail_blit;
+ result = anv_device_init_meta_blit2d_state(device);
+ if (result != VK_SUCCESS)
+ goto fail_blit2d;
+
return VK_SUCCESS;
+fail_blit2d:
+ anv_device_finish_meta_blit_state(device);
fail_blit:
anv_device_finish_meta_resolve_state(device);
fail_resolve:
@@ -166,4 +172,5 @@ anv_device_finish_meta(struct anv_device *device)
anv_device_finish_meta_resolve_state(device);
anv_device_finish_meta_clear_state(device);
anv_device_finish_meta_blit_state(device);
+ anv_device_finish_meta_blit2d_state(device);
}