diff options
Diffstat (limited to 'src/gallium/drivers/virgl/virgl_screen.c')
-rw-r--r-- | src/gallium/drivers/virgl/virgl_screen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/virgl/virgl_screen.c b/src/gallium/drivers/virgl/virgl_screen.c index 35becc1bd6a..e1a9f4ef385 100644 --- a/src/gallium/drivers/virgl/virgl_screen.c +++ b/src/gallium/drivers/virgl/virgl_screen.c @@ -550,7 +550,7 @@ has_format_bit(struct virgl_supported_format_mask *mask, unsigned idx = val / 32; unsigned bit = val % 32; assert(idx < ARRAY_SIZE(mask->bitmask)); - return (mask->bitmask[val / 32] & (1u << bit)) != 0; + return (mask->bitmask[idx] & (1u << bit)) != 0; } bool |