mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 00:38:48 +02:00
freedreno/a6xx: Don't try to tile NPoT formats
Signed-off-by: Rob Clark <rob.clark@oss.qualcomm.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/35982>
This commit is contained in:
parent
02d0b6bfa6
commit
34b61a23d2
1 changed files with 3 additions and 0 deletions
|
|
@ -1526,6 +1526,9 @@ FD_GENX(fd6_blitter_init);
|
|||
unsigned
|
||||
fd6_tile_mode_for_format(enum pipe_format pfmt)
|
||||
{
|
||||
if (!util_is_power_of_two_nonzero(util_format_get_blocksize(pfmt)))
|
||||
return TILE6_LINEAR;
|
||||
|
||||
/* basically just has to be a format we can blit, so uploads/downloads
|
||||
* via linear staging buffer works:
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue