nv30: only bail on color/depth bpp mismatch when surfaces are swizzled
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 31 Aug 2016 04:54:17 +0000 (00:54 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Wed, 31 Aug 2016 05:17:55 +0000 (01:17 -0400)
commit8caf2cb0c06fe0a1dddff3aed56392f376fda424
tree924c21a5710d3a1a5a6cd334facdb7a074f72e7b
parentd82f8d9772813949d0f5455cd0edad9003be0fb0
nv30: only bail on color/depth bpp mismatch when surfaces are swizzled

The actual restriction is a little weaker than I originally thought. See
https://bugs.freedesktop.org/show_bug.cgi?id=92306#c17 for the
suggestion. This also explain why things weren't *always* failing
before, only sometimes. We will allocate a non-swizzled depth buffer for
NPOT winsys buffer sizes, which they almost always are.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Cc: mesa-stable@lists.freedesktop.org
src/gallium/drivers/nouveau/nv30/nv30_state.c