gallium: implement util_clear_texture
authorLars Hamre <chemecse@gmail.com>
Wed, 22 Feb 2017 15:56:41 +0000 (10:56 -0500)
committerRoland Scheidegger <sroland@vmware.com>
Fri, 24 Feb 2017 14:40:11 +0000 (15:40 +0100)
commit3f9c5d62441eba38e8b1592aba965ed5db6fd89b
tree996d6c566b760a3a0a990480bc6dd4d50b46cd06
parent62e27170a7f7a90091b4121002b7ce209ac7ccb0
gallium: implement util_clear_texture

v3: have util_clear_texture mirror the pipe function (Roland Scheidegger)
v2: rework util clear functions such that they operate on a resource
    instead of a surface (Roland Scheidegger)

Creates a util_clear_texture function for implementing the GL_ARB_clear_texture
in softpipe and llvmpipe.

Signed-off-by: Lars Hamre <chemecse@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
src/gallium/auxiliary/util/u_surface.c
src/gallium/auxiliary/util/u_surface.h