i965: Use the surface format table to determine render target supportedness.
authorEric Anholt <eric@anholt.net>
Tue, 15 Nov 2011 19:44:52 +0000 (11:44 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 22 Nov 2011 21:58:38 +0000 (13:58 -0800)
commitca10b2d4494798405a5fd654201291944645af5d
tree4819af1ccb0debd4c75b783a52ad5bece4c1f93f
parent6661b7596f3b26a773ccde79f018179713b6b6e0
i965: Use the surface format table to determine render target supportedness.

This moves any chipset-dependent logic we want for render target
format choices to init time as well.  There is still logic left at
state update for SRGB handling, where format choices change based on
GL state.

The brw_render_target_supported() function should now return correct
results, instead of relying on the limited results from
intel_span_supports_format() to avoid lying about FBO completeness.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_wm_surface_state.c
src/mesa/drivers/dri/i965/gen7_wm_surface_state.c