summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvfx/nvfx_tex.h
AgeCommit message (Collapse)Author
2010-09-05nvfx: switch to rules-ng-ng register headersLuca Barbieri
This is the new register generation toolkit in use by nouveau. As far as I know, this is the best register description toolkit in existence, and you should use it too for your hardware :) Thanks to Marcin Kościelnicki for inventing it and performing invaluable reverse engineering work of nVidia chips.
2010-08-21nvfx: refactor sampling code, add support for swizzles and depth texLuca Barbieri
This is a significant refactoring of the sampling code that: - Moves all generic functions in nvfx_fragtex.c - Adds a driver-specific sampler view structure and uses it to precompute texture setup as it should be done - Unifies a bit more of code between nv30 and nv40 - Adds support for sampler view swizzles - Support for specifying as sampler view format different from the resource one (only trivially) - Support for sampler view specification of first and last level - Support for depth textures on nv30, both for reading depth and for compare - Support for sRGB textures - Unifies the format table between nv30 and nv40 - Expands the format table to include essentially all supportable formats except mixed sign and "autonormal" formats - Fixes the "is format supported" logic, which was quite broken, and makes it use the format table Only tested on nv30 currently.
2010-03-15nv30, nv40: partially non-trivially unify sampler state in nv[34]0_state.cLuca Barbieri
Many things, like texture wrap modes and min/mag filters are common. Some others, like annisotropy and lod settings, are not.