radeon: optimize allocation for depth w/o stencil and stencil w/o depth on EG
authorMarek Olšák <maraeo@gmail.com>
Sun, 29 Jul 2012 13:20:15 +0000 (15:20 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 9 Aug 2012 14:37:20 +0000 (16:37 +0200)
commit23372955730048bbcddafc74365d911f9a74fb13
tree9ebb2ef122e1a697612262627c649b2e5a9438ff
parentad66c17209811acdae21e44290a449523882a734
radeon: optimize allocation for depth w/o stencil and stencil w/o depth on EG

If we don't need stencil, don't allocate it.
If we need only stencil (like PIPE_FORMAT_S8_UINT), don't allocate depth.

v2: actually do it correctly

Reviewed-by: Christian König <christian.koenig@amd.com>
radeon/radeon_surface.c