freedreno/a2xx: Squash a compiler warning
authorKristian H. Kristensen <hoegsberg@chromium.org>
Tue, 16 Oct 2018 21:50:58 +0000 (14:50 -0700)
committerRob Clark <robdclark@gmail.com>
Fri, 26 Oct 2018 22:10:00 +0000 (18:10 -0400)
commit4222fe8af2b71f47dd076c94f817aa4ea1662963
tree5c4263237974230e2c77d811b65275c01b9959f0
parent4fd6265f42a387d2279e84c98102bf4341a26ab7
freedreno/a2xx: Squash a compiler warning

We get a warning here for assigning a const char * pointer to
char *swizzle in struct ir2_src_register.  The constructor strdups a 4
byte string here, so just memcpy to that instead.

Signed-off-by: Kristian H. Kristensen <hoegsberg@chromium.org>
src/gallium/drivers/freedreno/a2xx/fd2_compiler.c