[Mesa-dev] [PATCH 1/8] intel: do not create renderbuffers out of planar images

Topi Pohjolainen topi.pohjolainen at intel.com
Tue Apr 16 03:45:00 PDT 2013


Signed-off-by: Topi Pohjolainen <topi.pohjolainen at intel.com>
---
 src/mesa/drivers/dri/intel/intel_fbo.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
index c79b56a..1b72ac6 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -287,6 +287,10 @@ intel_image_target_renderbuffer_storage(struct gl_context *ctx,
    if (image == NULL)
       return;
 
+   /* Planar buffers are not supported as render targets. */
+   if (image->planar_format && image->planar_format->nplanes > 1)
+      return;
+
    /* __DRIimage is opaque to the core so it has to be checked here */
    switch (image->format) {
    case MESA_FORMAT_RGBA8888_REV:
-- 
1.8.1.2



More information about the mesa-dev mailing list