meta: Don't ask for floating point textures if not ARB_texture_float.
authorEric Anholt <eric@anholt.net>
Tue, 26 Apr 2011 19:56:37 +0000 (12:56 -0700)
committerEric Anholt <eric@anholt.net>
Fri, 29 Apr 2011 19:02:44 +0000 (12:02 -0700)
commit8c1637a4c233fd02a57dee1e38ac87012a04c4c5
treef85f6dfb712fd4fc72e749b16c8980e7bbdf5af9
parent2be2e1d3ada2d9cb5c1c42e955629d8fbbafcd0b
meta: Don't ask for floating point textures if not ARB_texture_float.

I was promoting to float for ARB_color_buffer_float unclamped, which
failed when ARB_texture_float wasn't present.  Since the metaops don't
need results outside of [0,1] when not drawing to a floating point
destination, they can just use a fixed point texture when floating
point destinations are impossible.

Fixes regression in fdo23670-depth_test when --enable-texture-float is
not present.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=36473
src/mesa/drivers/common/meta.c