OSDN Git Service

i965: Remove spurious casts in copy_image_with_memcpy()
authorChad Versace <chad.versace@linux.intel.com>
Wed, 19 Nov 2014 05:11:23 +0000 (21:11 -0800)
committerChad Versace <chad.versace@intel.com>
Mon, 22 Dec 2014 21:46:54 +0000 (15:46 -0600)
commitd11bc9fe8daf097741713cde6bdd79e1f0e0e8fc
tree3b0f6c2bfbfdf97ad2c83320e0d4d26f17389332
parent2150db4d5daad3781876254d2b440367afd756cd
i965: Remove spurious casts in copy_image_with_memcpy()

If a pointer points to raw, untyped memory and is never dereferenced,
then declare it as 'void*' instead of casting it to 'void*'.

Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/intel_copy_image.c