diff options
author | Eric Anholt <[email protected]> | 2015-01-06 13:35:21 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2016-11-03 18:42:58 -0700 |
commit | 80157466cd56bfaeadbdcac497b04c16c2732a3b (patch) | |
tree | 2e8f0ec0734deeee8ca66de83f87841d9f56f3b4 /src/gallium/drivers/vc4/vc4_screen.c | |
parent | bedb99608735aaa260eba0144ca6d46dbe43be55 (diff) |
vc4: Add miptree/texture state support for ETC1 compressed textures.
The format isn't flagged as enabled at runtime yet, because we need kernel
validation support.
Diffstat (limited to 'src/gallium/drivers/vc4/vc4_screen.c')
-rw-r--r-- | src/gallium/drivers/vc4/vc4_screen.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c index 0f9ba541aab..9aa80cab873 100644 --- a/src/gallium/drivers/vc4/vc4_screen.c +++ b/src/gallium/drivers/vc4/vc4_screen.c @@ -486,7 +486,8 @@ vc4_screen_is_format_supported(struct pipe_screen *pscreen, } if ((usage & PIPE_BIND_SAMPLER_VIEW) && - vc4_tex_format_supported(format)) { + vc4_tex_format_supported(format) && + format != PIPE_FORMAT_ETC1_RGB8) { retval |= PIPE_BIND_SAMPLER_VIEW; } |