intel: Add a vtbl hook for determining if a format is renderable.
authorEric Anholt <eric@anholt.net>
Fri, 7 Jan 2011 23:45:33 +0000 (15:45 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 8 Jan 2011 01:49:03 +0000 (17:49 -0800)
commita7bf7230564ac282cc957207224d16f322fa73d8
treec5e2c2e3b764eb6eb985f6f27dfd4c05712644d2
parentf3240547f978bd6c572c0cf17b05e0c5c6087a9e
intel: Add a vtbl hook for determining if a format is renderable.

By relying on just intel_span_supports_format, some formats that
aren't supported pre-gen4 were not reporting FBO incomplete.  And we
also complained in stderr when it happened on i915 because draw_region
gets called before framebuffer completeness validation.
src/mesa/drivers/dri/i915/i830_vtbl.c
src/mesa/drivers/dri/i915/i915_vtbl.c
src/mesa/drivers/dri/i965/brw_vtbl.c
src/mesa/drivers/dri/i965/brw_wm.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/intel/intel_context.h
src/mesa/drivers/dri/intel/intel_fbo.c