diff options
-rw-r--r-- | src/mesa/drivers/dri/intel/intel_fbo.c | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c index c2e9b9be5d9..348b927ae2d 100644 --- a/src/mesa/drivers/dri/intel/intel_fbo.c +++ b/src/mesa/drivers/dri/intel/intel_fbo.c @@ -1362,12 +1362,19 @@ intel_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb) continue; } - if (!intel_span_supports_format(irb->Base.Format) || - !intel->vtbl.render_target_supported(intel, irb->Base.Format)) { - DBG("Unsupported texture/renderbuffer format attached: %s\n", + if (!intel->vtbl.render_target_supported(intel, irb->Base.Format)) { + DBG("Unsupported HW texture/renderbuffer format attached: %s\n", _mesa_get_format_name(irb->Base.Format)); fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED_EXT; } + +#ifdef I915 + if (!intel_span_supports_format(irb->Base.Format)) { + DBG("Unsupported swrast texture/renderbuffer format attached: %s\n", + _mesa_get_format_name(irb->Base.Format)); + fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED_EXT; + } +#endif } } |