i965: Set the FBO error state INCOMPLETE_ATTACHMENT only for SRGB_R8
authorGert Wollny <gert.wollny@collabora.com>
Thu, 22 Nov 2018 18:00:03 +0000 (19:00 +0100)
committerGert Wollny <gw.fossdev@gmail.com>
Wed, 28 Nov 2018 09:12:47 +0000 (10:12 +0100)
commitf08d10705482907e94c9a3768013f6072db6f0c9
tree0c08fcf9a26a892d73c47790a03ec8ac023037bf
parentd8bb88d0b4d6d58c854ded1d5a6d2bc5e615902e
i965: Set the FBO error state INCOMPLETE_ATTACHMENT only for SRGB_R8

Originally the driver reported GL_FRAMEBUFFER_UNSUPPORTED in all cases,
adding more specific error messages was not correct and broke many tests.
Mostly revert this and only report GL_FRAMEBUFFER_INCOMPLETE_ATTACHMENT
for MESA_FORMAT_R_SRGB8.

Fixes: ebcde3454552adc6d3fea8af2207aafaba857796
  i965: be more specific about FBO completeness errors

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108805

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/drivers/dri/i965/intel_fbo.c