intel: remove intel_span_supports_format()
authorBrian Paul <brianp@vmware.com>
Mon, 16 Jan 2012 20:05:44 +0000 (13:05 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 24 Jan 2012 21:12:34 +0000 (14:12 -0700)
It always returned True.

src/mesa/drivers/dri/intel/intel_fbo.c
src/mesa/drivers/dri/intel/intel_span.c
src/mesa/drivers/dri/intel/intel_span.h

index 0bb61b5d642762faa96beec706178b2e3f073c6e..3a35a01abcac43c5b0ee56f4d6c51651b738f6d5 100644 (file)
@@ -833,14 +833,6 @@ intel_validate_framebuffer(struct gl_context *ctx, struct gl_framebuffer *fb)
             _mesa_get_format_name(intel_rb_format(irb)));
         fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED_EXT;
       }
-
-#ifdef I915
-      if (!intel_span_supports_format(intel_rb_format(irb))) {
-        DBG("Unsupported swrast texture/renderbuffer format attached: %s\n",
-            _mesa_get_format_name(intel_rb_format(irb)));
-        fb->_Status = GL_FRAMEBUFFER_UNSUPPORTED_EXT;
-      }
-#endif
    }
 }
 
index 9b6540d488f3a62d1bffe3eec9f7d8f0290a325d..2090e51d40c50c60d91692b7ccb54211d05466fc 100644 (file)
@@ -332,15 +332,3 @@ intel_unmap_vertex_shader_textures(struct gl_context *ctx)
       }
    }
 }
-
-
-bool
-intel_span_supports_format(gl_format format)
-{
-   /* Rendering to/from integer textures will be done using MapRenderbuffer,
-    * rather than coding up new paths through GetRow/PutRow(), so claim support
-    * for those formats in here for now.
-    */
-   return true;
-}
-
index 6640e15fcde667c657f26250876bed40e6c715f7..b2bd416412f62fb492ca2ed32e630e44ba5d8ba7 100644 (file)
@@ -38,7 +38,6 @@ extern void intelSpanRenderStart(struct gl_context * ctx);
 
 void intel_map_vertex_shader_textures(struct gl_context *ctx);
 void intel_unmap_vertex_shader_textures(struct gl_context *ctx);
-bool intel_span_supports_format(gl_format format);
 intptr_t intel_offset_S8(uint32_t stride, uint32_t x, uint32_t y);
 
 #endif