[Mesa-dev] [PATCH] r600: fix FMASK allocation on r600/700

Marek Olšák maraeo at gmail.com
Fri Dec 12 07:22:43 PST 2014


I suggest you compare pitch_tile_max between the color surface and
fmask. If it's different, then I think radeon_surface should use the
color surface pitch instead of calculating a separate fmask pitch.

I don't have any docs for r600-r700, but I have an old address lib
that only contains r600-r800 support. You might have the same thing in
tcore, not sure.

Marek

On Fri, Dec 12, 2014 at 6:07 AM, Dave Airlie <airlied at gmail.com> wrote:
> On 11 December 2014 at 06:45, Marek Olšák <maraeo at gmail.com> wrote:
>> It uses the libdrm surface allocator and FMASK is 2D tiled. Maybe the
>> rounding of bpp affects the pitch in a bad way.
>>
>
> I found this sentence hidden in tcore fmask allocator.
>
> // Note that pitch_tile_max is shared with the color surface and must be padded
>
> That reads to me that the fmask pitch needs to align with the color
> surface pitch,
>
> Maybe you guys can dig me out some more info on where this applies.
>
> Dave.


More information about the mesa-dev mailing list