diff options
author | Kenneth Graunke <[email protected]> | 2018-08-20 20:55:17 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2019-02-21 10:26:08 -0800 |
commit | d1cb4b330a501c9974412a0336a8caccae9fda59 (patch) | |
tree | 5037d6726a5ddfe18c19cd6da40eca911191b587 /src/gallium/drivers | |
parent | 367f6bbd0197f35c5aef44ee4b36db8075722c7e (diff) |
iris: reenable R32G32B32 texture buffers
This dropped us from GL 4.2 to GL 3.3 by mistake. Thanks to Dave for
catching this!
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/iris/iris_formats.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gallium/drivers/iris/iris_formats.c b/src/gallium/drivers/iris/iris_formats.c index 5d886f2f86a..2b1950eaf7e 100644 --- a/src/gallium/drivers/iris/iris_formats.c +++ b/src/gallium/drivers/iris/iris_formats.c @@ -482,8 +482,11 @@ iris_is_format_supported(struct pipe_screen *pscreen, * are renderable from an API perspective since the state tracker will * fall back to RGBA or RGBX, which are renderable. We want to render * internally for copies and blits, even if the application doesn't. + * + * We do need to advertise 32-bit RGB for texture buffers though. */ - supported &= fmtl->bpb != 24 && fmtl->bpb != 48 && fmtl->bpb != 96; + supported &= fmtl->bpb != 24 && fmtl->bpb != 48 && + (fmtl->bpb != 96 || target == PIPE_BUFFER); } if (usage & PIPE_BIND_VERTEX_BUFFER) |