anv: fix allocation of custom border color pool
Turns out that respecting the order of parameters is important.
Reported-by: Michael Blumenkrantz <michael.blumenkrantz@gmail.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Fixes: 5425968d2e
("anv: Implement VK_EXT_custom_border_color")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6175>
This commit is contained in:
@@ -2916,8 +2916,8 @@ VkResult anv_CreateDevice(
|
||||
*/
|
||||
anv_state_reserved_pool_init(&device->custom_border_colors,
|
||||
&device->dynamic_state_pool,
|
||||
sizeof(struct gen8_border_color),
|
||||
MAX_CUSTOM_BORDER_COLORS, 64);
|
||||
MAX_CUSTOM_BORDER_COLORS,
|
||||
sizeof(struct gen8_border_color), 64);
|
||||
}
|
||||
|
||||
result = anv_state_pool_init(&device->instruction_state_pool, device,
|
||||
|
Reference in New Issue
Block a user