Mesa (master): anv/cmd_buffer: Add an assert on emit_binding_table failure
Jason Ekstrand
jekstrand at kemper.freedesktop.org
Tue Nov 22 16:51:01 UTC 2016
Module: Mesa
Branch: master
Commit: 3ef8dff865fd7365ba36b49c43b5c858d26587ed
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=3ef8dff865fd7365ba36b49c43b5c858d26587ed
Author: Jason Ekstrand <jason.ekstrand at intel.com>
Date: Tue Nov 22 08:11:45 2016 -0800
anv/cmd_buffer: Add an assert on emit_binding_table failure
The != VK_SUCCESS case is really only capable of handling the one error.
This assert makes things a bit safer if something else goes wrong.
Suggested-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
---
src/intel/vulkan/genX_cmd_buffer.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/intel/vulkan/genX_cmd_buffer.c b/src/intel/vulkan/genX_cmd_buffer.c
index 6e957b7..138ce70 100644
--- a/src/intel/vulkan/genX_cmd_buffer.c
+++ b/src/intel/vulkan/genX_cmd_buffer.c
@@ -1514,6 +1514,7 @@ flush_compute_descriptor_set(struct anv_cmd_buffer *cmd_buffer)
result = emit_binding_table(cmd_buffer, MESA_SHADER_COMPUTE, &surfaces);
if (result != VK_SUCCESS) {
+ assert(result == VK_ERROR_OUT_OF_DEVICE_MEMORY);
result = anv_cmd_buffer_new_binding_table_block(cmd_buffer);
assert(result == VK_SUCCESS);
More information about the mesa-commit
mailing list