mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 02:28:10 +02:00
turnip: Make the tiling-impossible case have an impossible tile layout.
This helped me catch inappropriate tiling work being done in this case. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21004>
This commit is contained in:
parent
3c3bd12af7
commit
fd28452631
1 changed files with 3 additions and 3 deletions
|
|
@ -164,11 +164,11 @@ tu_tiling_config_update_tile_layout(struct tu_framebuffer *fb,
|
|||
*/
|
||||
if (!pass->gmem_pixels[gmem_layout]) {
|
||||
tiling->possible = false;
|
||||
/* Some parts of the code do conditional gmem setup even when gmem is not
|
||||
* possible. Give them a dummy tiling layout.
|
||||
/* Put in dummy values that will assertion fail in register setup using
|
||||
* them, since you shouldn't be doing gmem work if gmem is not possible.
|
||||
*/
|
||||
tiling->tile_count = (VkExtent2D) { 1, 1 };
|
||||
tiling->tile0 = (VkExtent2D) { tile_align_w, tile_align_h };
|
||||
tiling->tile0 = (VkExtent2D) { ~0, ~0 };
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue