mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-09 03:58:05 +02:00
tests/util: fix incorrect memset argument order
Make it actually clear the LUT. Reported-by: Dave Airlie <airlied@redhat.com> Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Dave Airlie <airlied@redhat.com>
This commit is contained in:
parent
b2103fa325
commit
dcc586c66c
1 changed files with 1 additions and 1 deletions
|
|
@ -643,7 +643,7 @@ void util_smpte_c8_gamma(unsigned size, struct drm_color_lut *lut)
|
|||
printf("Error: gamma too small: %d < %d\n", size, 7 + 7 + 8);
|
||||
return;
|
||||
}
|
||||
memset(lut, size * sizeof(struct drm_color_lut), 0);
|
||||
memset(lut, 0, size * sizeof(struct drm_color_lut));
|
||||
|
||||
#define FILL_COLOR(idx, r, g, b) \
|
||||
lut[idx].red = (r) << 8; \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue