summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau/nv30/nv30_fragtex.c
AgeCommit message (Collapse)AuthorFilesLines
2022-10-10gallium: normalized_coords -> unnormalized_coordsErik Faye-Lund1-4/+4
A lot of code zero-initializes pipe_sampler_state, and sets the states the non-zero fields manually. This means that normalized_coords is the "default" setting. However, setting normalized_coords to true isn't allways allowed, and we'd need to check PIPE_CAP_TEXRECT first. So it's not really the ideal default here. There's recently been found quite a bit of bugs in this area, where the state-tracker didn't properly lower texrects. Let's switch this around to avoid more bugs like this in the future. Reviewed-by: Adam Jackson <ajax@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18971>
2022-08-30nouveau: per context client and pushbufKarol Herbst1-0/+1
Signed-off-by: Karol Herbst <kherbst@redhat.com> Acked-by: M Henning <drawoc@darkrefraction.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10752>
2021-08-20gallium: add take_ownership into set_sampler_views to skip reference countingMarek Olšák1-3/+10
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12334>
2021-01-27gallium: add unbind_num_trailing_slots to set_sampler_viewsMarek Olšák1-0/+1
Instead of calling this functions again to unbind trailing slots, extend it to do it when binding. This reduces CPU overhead. A lot of drivers ignore "start" and always unbind all slots after "count". Such drivers don't need any changes here. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8298>
2016-08-29gallium: Use enum pipe_shader_type in set_sampler_views()Kai Wasserbäch1-1/+1
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-10-23gallium: new, unified pipe_context::set_sampler_views() functionBrian Paul1-2/+22
The new function replaces four old functions: set_fragment/vertex/ geometry/compute_sampler_views(). Note: at this time, it's expected that the 'start' parameter will always be zero. Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Tested-by: Emil Velikov <emil.l.velikov@gmail.com>
2013-10-03nouveau: remove old bind_*_sampler_states() functionsBrian Paul1-1/+0
2013-10-03nouveau: implement pipe_context::bind_sampler_states()Brian Paul1-1/+1
2013-09-11Move nv30, nv50 and nvc0 to nouveau.Johannes Obermayr1-0/+202
It is planned to ship openSUSE 13.1 with -shared libs. nouveau.la, nv30.la, nv50.la and nvc0.la are currently LIBADDs in all nouveau related targets. This change makes it possible to easily build one shared libnouveau.so which is then LIBADDed. Also dlopen will be faster for one library instead of three and build time on -jX will be reduced. Whitespace fixes were requested by 'git am'. Signed-off-by: Johannes Obermayr <johannesobermayr@gmx.de> Acked-by: Christoph Bumiller <christoph.bumiller@speed.at> Acked-by: Ian Romanick <ian.d.romanick@intel.com>