summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/nouveau/nv20_context.c
Commit message (Collapse)AuthorAgeFilesLines
* nouveau: Enable EXT_texture_env_dot3 on NV10 and NV20Ian Romanick2016-08-261-0/+1
| | | | | | | | | | | | GL_DOT3_RGB_EXT and GL_DOT3_RGBA_EXT. are nearly identical to GL_DOT3_RGB and GL_DOT3_RGBA. The only difference is the _EXT versions do not apply the post-scale. Just smash logscale to 0 so that RC_OUT_SCALE_1 is always used. NOTE: I have not actually tested this. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Acked-by: Ilia Mirkin <imirkin@alum.mit.edu>
* dri/nouveau: Pass the API into _mesa_initialize_contextEmil Velikov2014-02-111-2/+3
| | | | | | | | | | | Currently we create a OPENGL_COMPAT context regardless of what was requested by the program. Correct that by retaining the program's request and passing it into _mesa_initialize_context. Based on a similar commit for radeon/r200 by Ian Romanick. Cc: "9.1 9.2 10.0" <mesa-stable@lists.freedesktop.org> Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
* mesa: replace ctx->Const.{Vertex,Fragment,Geomtery}Program with an array.Paul Berry2014-01-091-1/+1
| | | | | | | | | | | | | | | | | | | | These are replaced with ctx->Const.Program[MESA_SHADER_{VERTEX,FRAGMENT,GEOMETRY}]. In patches to follow, this will allow us to replace a lot of ad-hoc logic with a variable index into the array. With the exception of the changes to mtypes.h, this patch was generated entirely by the command: find src -type f '(' -iname '*.c' -o -iname '*.cpp' -o -iname '*.py' \ -o -iname '*.y' ')' -print0 | xargs -0 sed -i \ -e 's/Const\.VertexProgram/Const.Program[MESA_SHADER_VERTEX]/g' \ -e 's/Const\.GeometryProgram/Const.Program[MESA_SHADER_GEOMETRY]/g' \ -e 's/Const\.FragmentProgram/Const.Program[MESA_SHADER_FRAGMENT]/g' Suggested-by: Brian Paul <brianp@vmware.com> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
* mesa: move max texture image unit constants to gl_program_constantsMarek Olšák2013-05-111-1/+1
| | | | | | | | | | Const.MaxTextureImageUnits -> Const.FragmentProgram.MaxTextureImageUnits Const.MaxVertexTextureImageUnits -> Const.VertexProgram.MaxTextureImageUnits etc. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
* mesa: Use a single flag for the S3TC extensions that don't require on-line ↵Ian Romanick2013-01-231-1/+1
| | | | | | | | compression Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net> Acked-by: Lee Salzman <lsalzman@gmail.com>
* mesa: s/FREE/free/Brian Paul2012-09-011-1/+1
| | | | | | | v2: replace instances in dri/common/ dirs Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
* dri/nv10-nv20: Add support for S3TCViktor Novotný2012-05-021-0/+4
| | | | | Signed-off-by: Viktor Novotný <noviktor@seznam.cz> Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* nouveau/vieux: switch to libdrm_nouveau-2.0Ben Skeggs2012-04-141-281/+290
|
* nouveau: stop using _DepthBuffer, _StencilBuffer fieldsBrian Paul2011-12-131-1/+1
| | | | Reviewed-by: Eric Anholt <eric@anholt.net>
* dri/nouveau: Enable NV_fog_distance on NV10 and NV20 hardwareNicholas Miell2011-11-011-0/+1
| | | | | | | Add support for NV_fog_distance to the NV10 and NV20 drivers. [ Francisco Jerez: Fix fog coord. signedness for GL_EYE_RADIAL_NV/GL_EYE_PLANE on nv20 ]
* mesa: introduce a clear color union to be used for int/unsigned buffersDave Airlie2011-09-141-1/+1
| | | | | | | | | | This introduces a new gl_color_union union and moves the current ClearColorUnclamped to use it, it removes current ClearColor completely and renames CCU to CC, then all drivers are modified to expected unclamped floats instead. also fixes st to use translated color in one place it wasn't. Signed-off-by: Dave Airlie <airlied@redhat.com>
* nouveau: Enable extensions by just setting the flagsIan Romanick2011-09-091-9/+5
| | | | | | | | | | | | | | | | | Core Mesa already does the dispatch offset remapping for every function that could possibly ever be supported. There's no need to continue using that cruft in the driver. Since the call to _mesa_enable_imaging_extensions (via driInitExtensions) is removed, EXT_blend_color, EXT_blend_minmax, and EXT_blend_subtract are explicitly added to the list. EXT_blend_logic_op is removed from the list of extensions because blend factors and separate blend equations are not handled correctly. Cc: Ben Skeggs <bskeggs@redhat.com> Reviewed-by: Francisco Jerez <currojerez@riseup.net> Cc: Viktor Novotný <noviktor@seznam.cz>
* dri/nouveau nv20: Use rules-ng-ng headersViktor Novotný2010-11-151-115/+116
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* dri/nouveau: Split hardware/software TNL instantiation more cleanly.Francisco Jerez2010-11-111-2/+4
|
* dri/nv25: Bind a hierarchical depth buffer.Francisco Jerez2010-10-301-4/+0
|
* dri/nv20: Clear with the 3D engine.Francisco Jerez2010-10-301-0/+54
|
* Drop GLcontext typedef and use struct gl_context insteadKristian Høgsberg2010-10-131-5/+5
|
* Rename GLvisual and __GLcontextModes to struct gl_configKristian Høgsberg2010-10-131-1/+1
|
* dri/nouveau: Add some more extensions.Francisco Jerez2010-09-161-0/+1
|
* dri/nv04: Don't expose ARB_texture_env_combine/dot3.Andrew Randrianasulu2010-09-161-0/+2
| | | | Signed-off-by: Francisco Jerez <currojerez@riseup.net>
* dri/nouveau: Implement texcoord generation.Francisco Jerez2010-03-181-7/+7
|
* dri/nouveau: Implement texture matrices.Francisco Jerez2010-03-181-0/+4
|
* dri/nouveau: Remove some CI remnants.Francisco Jerez2010-03-041-1/+0
|
* dri/nouveau: Support rectangle textures.Francisco Jerez2010-02-251-0/+7
|
* dri/nouveau: Restructure the nv[12]0 regcombiner code, and fake A8/L8 support.Francisco Jerez2010-02-251-5/+5
|
* dri/nouveau: Some multithreaded rendering fixes.Francisco Jerez2010-02-171-9/+454
|
* Import a classic DRI driver for nv0x-nv2x.Francisco Jerez2010-02-041-0/+61