intel/hasvk: assume() we don't get ISL_NUM_FORMATS
Because coverity CID: 1559412 Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27369>
This commit is contained in:
@@ -153,6 +153,7 @@ emit_vertex_input(struct anv_graphics_pipeline *pipeline,
|
||||
vi->attributes[a].format,
|
||||
VK_IMAGE_ASPECT_COLOR_BIT,
|
||||
VK_IMAGE_TILING_LINEAR);
|
||||
assume(format < ISL_NUM_FORMATS);
|
||||
|
||||
uint32_t binding = vi->attributes[a].binding;
|
||||
assert(binding < MAX_VBS);
|
||||
|
Reference in New Issue
Block a user