On Mon, Nov 9, 2015 at 3:29 PM, Roland Scheidegger <srol...@vmware.com> wrote: > Am 09.11.2015 um 21:12 schrieb Ilia Mirkin: >> On Mon, Nov 9, 2015 at 3:07 PM, Roland Scheidegger <srol...@vmware.com> >> wrote: >>> Am 09.11.2015 um 19:40 schrieb Ilia Mirkin: >>>> This is basically a resend of a series I wrote over a year ago. I >>>> don't remember what we hated about it last time, but I'm tempted not >>>> to look. This seems pretty reasonably to me now. >>> I guess I wasn't entirely happy with yet another clear method... Still, >>> looks reasonable... >> >> Yeah, I'm not madly in love with it either, but the various >> functionality just isn't accessible otherwise. Internally the nvc0 and >> nv50 impls reuse the clear_render_target/clear_depth_stencil >> functions, but that's not generically possible since we have to be >> able to clear non-renderable formats. >> >> I guess an alternative here is to say that we can redefine the format >> of a surface to basically what I do in the nvc0 patch, I can move that >> logic from nvc0 to st/mesa. > I think if you don't have the rt, there's really not much point to > redefine the surface format for clearing.
OK, so then we're stuck with the way I implemented it then. Unless there are other suggestions. The requirement is to be able to clear arbitrary textures with arbitrary texel data. -ilia _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev