gallium/swr: Fix compilation warnings
authorjzielins <jan.zielinski@intel.com>
Mon, 6 Jul 2020 15:38:02 +0000 (17:38 +0200)
committerJan Zielinski <jan.zielinski@intel.com>
Tue, 7 Jul 2020 09:24:47 +0000 (09:24 +0000)
commit53e204dc26ec89ddc22de864711c844684fb67a8
treed6f5df4b51c6672fea28bf917beec7ee0138732e
parent846f4f95dd8b0e514592074aa18d797afe914463
gallium/swr: Fix compilation warnings

In some places in SWR cod objects are initialized using
memset/memcpy. This is usually done to enable
allocating those objects in aligned memory.
It generates compilation warnings though,
which are worked around by casting the pointers to void*
before calling memset/memcpy.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5777>
src/gallium/drivers/swr/rasterizer/common/rdtsc_buckets.cpp
src/gallium/drivers/swr/rasterizer/core/api.cpp
src/gallium/drivers/swr/rasterizer/core/frontend.cpp
src/gallium/drivers/swr/rasterizer/core/ringbuffer.h
src/gallium/drivers/swr/rasterizer/jitter/builder_misc.cpp
src/gallium/drivers/swr/rasterizer/memory/StoreTile.h
src/gallium/drivers/swr/swr_context.cpp
src/gallium/drivers/swr/swr_shader.cpp
src/gallium/drivers/swr/swr_state.cpp