OSDN Git Service

util: fix issues with util_clear_render_target.
authorRoland Scheidegger <sroland@vmware.com>
Wed, 27 Feb 2013 18:25:48 +0000 (19:25 +0100)
committerRoland Scheidegger <sroland@vmware.com>
Thu, 28 Feb 2013 02:39:53 +0000 (03:39 +0100)
commit2fcd3638be9526e0300964894e93fd4082fb6fdb
treee4a95f2b85105fb9c2e7071e87e060cdfe3efd34
parent6b35c2b110be0d9ae6a292250fdcbab11a9190a5
util: fix issues with util_clear_render_target.

For PIPE_BUFFER we need coord adjustments for the transfer.
And for pure integer formats util_pack_color just crashes,
need to handle that differently due to clear colors being ints/uints.

Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
src/gallium/auxiliary/util/u_surface.c