i965/tex: Don't create read-write textures with non-renderable formats
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 27 Jan 2015 22:18:57 +0000 (14:18 -0800)
committerJason Ekstrand <jason.ekstrand@intel.com>
Wed, 28 Jan 2015 09:28:32 +0000 (01:28 -0800)
commit5e8468e6dadb06da061ad51e2c40e85bc1c6c3e4
treead81a07764f494b64fb887e12612142e7fdd8156
parent34723c0861f9fa955dab4902c80afb6a6e1153c3
i965/tex: Don't create read-write textures with non-renderable formats

I haven't actually seen this bug in the wild, but it's possible that
someone could ask to do a S3TC PBO download or something.  This protects us
from accidentally creating a render target with a compressed or otherwise
non-renderable format.

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