OSDN Git Service

radeonsi: fix CMASK and HTILE allocation on Tahiti
authorMarek Olšák <marek.olsak@amd.com>
Thu, 7 Aug 2014 19:14:31 +0000 (21:14 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sat, 9 Aug 2014 21:41:16 +0000 (23:41 +0200)
commit955505f6ff1c8bba7eb142200d3bd065eb4d2297
tree986d8c9b2e8908dd309d8bfdb7aae22241cfd66a
parent00ddf7a0162a1a531549bdee02932e0918459775
radeonsi: fix CMASK and HTILE allocation on Tahiti

Tahiti has 12 tile pipes, but P8 pipe config.

It looks like there is no way to get the pipe config except for reading
GB_TILE_MODE. The TILING_CONFIG ioctl doesn't return more than 8 pipes,
so we can't use that for Hawaii.

This fixes a regression caused by 9b046474c95f15338d4c748df9b62871bba6f36f
on Tahiti.

v2: add an assertion and print an error on failure

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeon/r600_texture.c
src/gallium/drivers/radeonsi/si_pipe.c