Re: [Mesa-dev] [PATCH] softpipe: implement clear_texture

2017-02-15 Thread Roland Scheidegger
Yes, I guess a new util_clear_texture helper would work - util_clear_render_target and util_clear_depth_stencil are modeled after the respective pipe functions too, so why not have a util_clear_texture modeled after the respective pipe function... Maybe rip out most of the actual implementation of

Re: [Mesa-dev] [PATCH] softpipe: implement clear_texture

2017-02-15 Thread Lars Hamre
Happy to rework the implementation. Would creating a util_clear_texture function which pulls out the necessary components from util_clear_render_target be in alignment with what you're imagining? The idea would be to have util_clear_texture take a pipe_resource instead of a pipe_surface. Something

Re: [Mesa-dev] [PATCH] softpipe: implement clear_texture

2017-02-13 Thread Roland Scheidegger
Am 13.02.2017 um 16:20 schrieb Lars Hamre: > Implements the ARB_clear_texture extension for softpipe. > Passes all corresponding piglit tests. > > Signed-off-by: Lars Hamre > > --- > > NOTE: someone with access will need to commit this post > review process > > src/gallium/drivers/softp