projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2103fa
)
tests/util: fix incorrect memset argument order
author
Ilia Mirkin
<imirkin@alum.mit.edu>
Wed, 3 Jul 2019 03:18:56 +0000
(23:18 -0400)
committer
Ilia Mirkin
<imirkin@alum.mit.edu>
Wed, 3 Jul 2019 04:19:39 +0000
(
00:19
-0400)
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>
tests/util/pattern.c
patch
|
blob
|
history
diff --git
a/tests/util/pattern.c
b/tests/util/pattern.c
index 42a0e5c79b406fbbac3d77be16fecd1e929e6861..bf1797d4020beb4ddabb77d9dabe504d45f293a6 100644
(file)
--- a/
tests/util/pattern.c
+++ b/
tests/util/pattern.c
@@
-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; \