radeonsi: Fix tiling mode index for stencil resources
authorMichel Dänzer <michel.daenzer@amd.com>
Wed, 10 Sep 2014 01:57:58 +0000 (10:57 +0900)
committerMichel Dänzer <michel@daenzer.net>
Tue, 30 Sep 2014 09:55:48 +0000 (18:55 +0900)
commit761d80ddab9ce854dc964b2023bc4fbc734fafc7
tree530a393a44c2e739989d062991770917139a0742
parent594e1a2f4b67ceb01d76980f54db40a4e7d56c40
radeonsi: Fix tiling mode index for stencil resources

We are currently only dealing with depth-only or stencil-only resources
here, not with resources having both depth and stencil[0]. In both cases,
the tiling mode index is in the tile_mode field, not in the
stencil_tile_mode field.

[0] Add an assertion for that.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_dma.c