nouveau: add framebuffer validation callback
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 15 Jan 2014 00:50:33 +0000 (19:50 -0500)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 15 Jan 2014 11:12:00 +0000 (12:12 +0100)
commit716b512dcf1d28eb9cafb31773aec68c4fd58122
tree3e9db0fd70946ffbdda2aa1b723cdd54bee4767e
parente457aca7fa477bfa2fbd57f1d0c8155206cfd8e8
nouveau: add framebuffer validation callback

Fixes assertions when trying to attach textures to fbs with formats not
supported by the render engines.

See https://bugs.freedesktop.org/show_bug.cgi?id=73459

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Francisco Jerez <currojerez@riseup.net>
src/mesa/drivers/dri/nouveau/nouveau_context.c
src/mesa/drivers/dri/nouveau/nouveau_fbo.c