On Tue, Oct 20, 2015 at 9:42 AM, Michel Dänzer <mic...@daenzer.net> wrote: > On 17.10.2015 22:09, Marek Olšák wrote: >> From: Marek Olšák <marek.ol...@amd.com> >> >> All tests pass. We don't need to do much - just set CUBE if the view >> target is CUBE or CUBE_ARRAY, otherwise set the resource target. >> >> The reason this is so simple can be that texture instructions >> have a greater effect on the target than the sampler view. > > I think you meant to swap "is" and "can be": "The reason this can be so > simple is that texture instructions have a greater effect on the target > than the sampler view." > > BTW, is that statement really accurate? Isn't it rather because the > format and mip level clamping was already handled via the sampler view > before?
I didn't consider the format and clamping to be anything new here. The only thing that is new with ARB_texture_view is that the texture target can be overriden by sampler views. The thing is the hardware doesn't care much :) setting the correct target in the shader already had the desired effect for all types except Cube. Marek _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev