projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
android: fix cflags and includes for amdgpu winsys
[mesa.git]
/
src
/
gallium
/
drivers
/
vc4
/
vc4_formats.c
diff --git
a/src/gallium/drivers/vc4/vc4_formats.c
b/src/gallium/drivers/vc4/vc4_formats.c
index 004bac70c67e45674dd36efa6519303db0030540..ffce61237de47e296de65a7ea35fa99a209cb453 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_formats.c
+++ b/
src/gallium/drivers/vc4/vc4_formats.c
@@
-108,7
+108,7
@@
static const struct vc4_format vc4_format_table[] = {
static const struct vc4_format *
get_format(enum pipe_format f)
{
- if (f > ARRAY_SIZE(vc4_format_table) ||
+ if (f >
=
ARRAY_SIZE(vc4_format_table) ||
!vc4_format_table[f].present)
return NULL;
else