Mesa (main): vc4: Use Rn_UINT instead of In_UINT for index buffers
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Jun 2 00:00:29 UTC 2021
Module: Mesa
Branch: main
Commit: a0b74bad623354a111c3828485d802ae8718da01
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a0b74bad623354a111c3828485d802ae8718da01
Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date: Tue May 25 17:57:09 2021 -0400
vc4: Use Rn_UINT instead of In_UINT for index buffers
Signed-off-by: Alyssa Rosenzweig <alyssa at collabora.com>
Reviewed-by: Emma Anholt <emma at anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10990>
---
src/gallium/drivers/vc4/vc4_screen.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/gallium/drivers/vc4/vc4_screen.c b/src/gallium/drivers/vc4/vc4_screen.c
index 69d8c80638e..5cfce4da2d1 100644
--- a/src/gallium/drivers/vc4/vc4_screen.c
+++ b/src/gallium/drivers/vc4/vc4_screen.c
@@ -406,8 +406,8 @@ vc4_screen_is_format_supported(struct pipe_screen *pscreen,
}
if ((usage & PIPE_BIND_INDEX_BUFFER) &&
- format != PIPE_FORMAT_I8_UINT &&
- format != PIPE_FORMAT_I16_UINT) {
+ format != PIPE_FORMAT_R8_UINT &&
+ format != PIPE_FORMAT_R16_UINT) {
return false;
}
More information about the mesa-commit
mailing list