Re: [Mesa-dev] [PATCH 5/6] st/mesa: set correct PIPE_CLEAR_COLORn flags

2013-12-06 Thread Roland Scheidegger
Oh I wasn't aware of that extension. It seems though those functions aren't quite ideally suited for that neither. First, they require surfaces, whereas the OpenGL extension is done specifically so the texture may be cleared even if the texture is non-renderable (hence surface creation may fail).

Re: [Mesa-dev] [PATCH 5/6] st/mesa: set correct PIPE_CLEAR_COLORn flags

2013-12-06 Thread Marek Olšák
We can easily change the functions, so that they take pipe_box instead of pipe_surface. It's not a problem. The state tracker or gallium/util will have to provide a fallback path for compressed and non-renderable formats anyway. Marek On Fri, Dec 6, 2013 at 2:29 PM, Roland Scheidegger

Re: [Mesa-dev] [PATCH 5/6] st/mesa: set correct PIPE_CLEAR_COLORn flags

2013-12-05 Thread Roland Scheidegger
Am 05.12.2013 18:53, schrieb Marek Olšák: From: Marek Olšák marek.ol...@amd.com This also fixes the clear_with_quad function for glClearBuffer. --- src/mesa/state_tracker/st_cb_clear.c | 37 +--- 1 file changed, 26 insertions(+), 11 deletions(-) diff

Re: [Mesa-dev] [PATCH 5/6] st/mesa: set correct PIPE_CLEAR_COLORn flags

2013-12-05 Thread Marek Olšák
We'll probably use clear_render_target for GL_ARB_clear_texture (GL 4.4), so it will be useful finally. Marek On Thu, Dec 5, 2013 at 10:49 PM, Roland Scheidegger srol...@vmware.com wrote: Am 05.12.2013 18:53, schrieb Marek Olšák: From: Marek Olšák marek.ol...@amd.com This also fixes the