Re: [Mesa-dev] [PATCH] gallium/radeon: implement ARB_clear_texture (v2)

2016-08-06 Thread Roland Scheidegger
Yes, these commands are modelled after d3d10 clears (the only d3d10 clear methods are clear_rt/clear_dsv), so gallium at some point only had the "ordinary" clear (useful for d3d9 and gl, but doesn't cover everything neither). It is unfortunate all apis handle clear differently. Making them honoring

Re: [Mesa-dev] [PATCH] gallium/radeon: implement ARB_clear_texture (v2)

2016-08-06 Thread Nicolai Hähnle
Ah, somehow I missed the earlier email from Ilia, now I see the mention of the d3d10 state tracker. I still think this is a surprising hack. Maybe render condition can be made optional like for blits? Nicolai On 06.08.2016 13:14, Nicolai Hähnle wrote: On 05.08.2016 14:20, Marek Olšák wrote:

Re: [Mesa-dev] [PATCH] gallium/radeon: implement ARB_clear_texture (v2)

2016-08-06 Thread Nicolai Hähnle
On 05.08.2016 14:20, Marek Olšák wrote: On Aug 5, 2016 10:54 AM, "Nicolai Hähnle" mailto:nhaeh...@gmail.com>> wrote: On 04.08.2016 21:42, Marek Olšák wrote: From: Marek Olšák mailto:marek.ol...@amd.com>> Some ideas copied from Jakob Sinclair's implementation, but the color clearing is comp

Re: [Mesa-dev] [PATCH] gallium/radeon: implement ARB_clear_texture (v2)

2016-08-05 Thread Marek Olšák
On Aug 5, 2016 10:54 AM, "Nicolai Hähnle" wrote: > > > > On 04.08.2016 21:42, Marek Olšák wrote: >> >> From: Marek Olšák >> >> Some ideas copied from Jakob Sinclair's implementation, but the color >> clearing is completely different. >> >> v2: remove leftover code, disable conditional rendering >

Re: [Mesa-dev] [PATCH] gallium/radeon: implement ARB_clear_texture (v2)

2016-08-05 Thread Nicolai Hähnle
On 04.08.2016 21:42, Marek Olšák wrote: From: Marek Olšák Some ideas copied from Jakob Sinclair's implementation, but the color clearing is completely different. v2: remove leftover code, disable conditional rendering --- docs/GL3.txt | 2 +- docs/relnotes/12.1

Re: [Mesa-dev] [PATCH] gallium/radeon: implement ARB_clear_texture (v2)

2016-08-04 Thread Edward O'Callaghan
On 08/05/2016 05:42 AM, Marek Olšák wrote: > From: Marek Olšák > > Some ideas copied from Jakob Sinclair's implementation, but the color > clearing is completely different. > > v2: remove leftover code, disable conditional rendering > --- > docs/GL3.txt | 2 +- >

[Mesa-dev] [PATCH] gallium/radeon: implement ARB_clear_texture (v2)

2016-08-04 Thread Marek Olšák
From: Marek Olšák Some ideas copied from Jakob Sinclair's implementation, but the color clearing is completely different. v2: remove leftover code, disable conditional rendering --- docs/GL3.txt | 2 +- docs/relnotes/12.1.0.html | 1 + src/gallium/