freedreno: track staging and shadow perf ctrs for the HUD
[mesa.git] / src / gallium / drivers / softpipe / sp_texture.c
index 8dca15860e41b52f00aa50b58e04cac7fd7d8d44..ea5e2c64b849af402a1c0370ccba661377109229 100644 (file)
@@ -37,6 +37,7 @@
 #include "util/u_math.h"
 #include "util/u_memory.h"
 #include "util/u_transfer.h"
+#include "util/u_surface.h"
 
 #include "sp_context.h"
 #include "sp_flush.h"
@@ -520,6 +521,7 @@ softpipe_init_texture_funcs(struct pipe_context *pipe)
 
    pipe->create_surface = softpipe_create_surface;
    pipe->surface_destroy = softpipe_surface_destroy;
+   pipe->clear_texture = util_clear_texture;
 }