OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 1 Sep 2016 10:39:47 +0000 (11:39 +0100)
commit0fa0e2a5051f32438436adef20bd335eaf91feb2
treefd81d8a29aa2d6b72bcc555f7ad4e8834af81fa6
parent9a8d60539860d131a181e4d4ec446a5f5b699992
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
(cherry picked from commit 8caf2cb0c06fe0a1dddff3aed56392f376fda424)
src/gallium/drivers/nouveau/nv30/nv30_state.c