st/mesa: try PIPE_BIND_RENDER_TARGET when choosing float texture formats
authorBrian Paul <brianp@vmware.com>
Thu, 24 Sep 2015 15:36:44 +0000 (09:36 -0600)
committerBrian Paul <brianp@vmware.com>
Tue, 29 Sep 2015 17:52:22 +0000 (11:52 -0600)
commitcb758b892a7e62ff1f6187f2ca9ac543ff70a096
treeb7dc3ba57b505682d96d2ff66c076c8c2e8e6b52
parentdaf23bd4cb944e1d78664b6780a78d021c0cec79
st/mesa: try PIPE_BIND_RENDER_TARGET when choosing float texture formats

For 8-bit RGB(A) texture formats we set the PIPE_BIND_RENDER_TARGET flag
to try to get a hardware format which also supports rendering (for FBO
textures).  Do the same thing for floating point formats.

This allows the Redway3D Flat demo to run.

Cc: 10.6 11.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/mesa/state_tracker/st_format.c