summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r200
AgeCommit message (Collapse)AuthorFilesLines
2013-07-30mesa: default DEPTH_TEXTURE_MODE should be RED in the core profileMarek Olšák1-1/+1
Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28mesa: Remove unused allow_large_textures driconf from classic drivers.Eric Anholt1-7/+0
This option hasn't been used since the introduction of DRI2. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-06-28mesa: GL_NV_blend_square is not optionalIan Romanick1-1/+0
Every driver left in Mesa enables this extension all the time. There's no reason to let it be optional. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_EXT_fog_coord is not optionalIan Romanick1-1/+0
Every driver left in Mesa enables this extension all the time. There's no reason to let it be optional. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_EXT_secondary_color is not optionalIan Romanick1-1/+0
Every driver left in Mesa enables this extension all the time. There's no reason to let it be optional. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-28mesa: GL_EXT_framebuffer_object is not optionalIan Romanick1-1/+0
Every driver left in Mesa enables this extension all the time. There's no reason to let it be optional. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Brian Paul <brianp@vmware.com>
2013-06-25mesa: Remove Driver.GetBufferSize and its callers.Eric Anholt1-1/+0
Only the GDI driver set it to non-NULL any more, and that driver has a Viewport hook that should keep it limping along as well as it ever has. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-05-15radeon: Use accessor for stencil reference valuesChris Forbes1-1/+2
V2: Drop spurious mask with 0xff. NOTE: This is a candidate for stable branches. Signed-off-by: Chris Forbes <chrisf@ijw.co.nz> Acked-by: Paul Berry <stereotype441@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2013-05-12mesa: Move the mvp_with_dp4 flag to ShaderCompilerOptions.Kenneth Graunke1-1/+1
This flag essentially tells the compiler whether it prefers dot products or multiply/adds for matrix operations. As such, ShaderCompilerOptions seems like the right place for it. This also lets us specify it on a per-stage basis. This patch makes all existing users set the flag for the Vertex Shader stage only, as it's currently only used for fixed-function vertex programs. That will change soon, and I wanted to preserve the existing behavior. Signed-off-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2013-05-11mesa: move max texture image unit constants to gl_program_constantsMarek Olšák2-2/+2
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>
2013-05-01build: remove unused API_DEFINESAndreas Boll1-1/+0
Reviewed-by: Matt Turner <mattst88@gmail.com>
2013-04-24r200: fix build regression introduced with ↵Laurent Carlier1-1/+0
9a32203e1618486e87c7baf494134e05f0e38cf3 Signed-off-by: Laurent Carlier <lordheavym@gmail.com> Signed-off-by: Marek Olšák <maraeo@gmail.com>
2013-04-17mesa: remove #include "mfeatures.h" from numerous source filesBrian Paul2-2/+0
None of the remaining FEATURE_x symbols in mfeatures.h are used anymore. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2013-04-17r200: fix build failure introduced with cbbcb0247e6aa8d7adc274a94206ee02f9c70beaLaurent Carlier1-1/+1
Signed-off-by: Brian Paul <brianp@vmware.com>
2013-04-17mesa: remove DD_TRI_LIGHT_TWOSIDE flagBrian Paul1-3/+6
v2: use conditional operator instead of bit shifting Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-17mesa: remove DD_TRI_UNFILLED flagBrian Paul2-5/+14
Use alternate code in intel, r200, radeon drivers. v2: use conditional operator instead of bit shifting Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-17mesa: remove DD_POINT_SMOOTH flagBrian Paul2-2/+2
Reviewed-by: Eric Anholt <eric@anholt.net>
2013-04-17mesa: remove DD_SEPARATE_SPECULAR flagBrian Paul1-1/+2
Reviewed-by: Eric Anholt <eric@anholt.net>
2013-03-15Replace gl_vert_result enum with gl_varying_slot.Paul Berry2-27/+27
This patch makes the following search-and-replace changes: gl_vert_result -> gl_varying_slot VERT_RESULT_* -> VARYING_SLOT_* Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Eric Anholt <eric@anholt.net> Tested-by: Brian Paul <brianp@vmware.com>
2013-01-23mesa: Use a single flag for the S3TC extensions that don't require on-line ↵Ian Romanick1-1/+2
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>
2013-01-21mesa: Make the drivers call a non-code-generated dispatch table setup.Eric Anholt1-1/+1
I want to drive the Save dispatch table setup from this same function. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
2013-01-13xmlpool: Fix out-of-tree builds.Johannes Obermayr1-0/+1
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-01-13r200: Fix probable thinko in r200EmitArraysAdam Jackson1-1/+2
Effectively this path would always assert. Move the break statement to the (probable) intended place. Note: This is a candidate for the stable branches. Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
2013-01-13Remove hacks for static MakefilesMatt Turner1-3/+0
v2: Andreas Boll <andreas.boll.dev@gmail.com> - don't remove compatibility with scripts for the old build system v3: Andreas Boll <andreas.boll.dev@gmail.com> - remove more obsolete hacks v4: Andreas Boll <andreas.boll.dev@gmail.com> - add a previously removed TOP variable to fix vgapi build
2013-01-10Clean up .gitignore filesMatt Turner1-1/+0
2013-01-03radeon/r200: Fix tcl cullingsmoki1-9/+4
Should fix: https://bugs.freedesktop.org/show_bug.cgi?id=57842
2012-12-16drivers: compute version and then initialize exec tableJordan Justen1-0/+6
This change forces the context version to be computed before initilizing the exec dispatch tables. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-12-10r200: fix broken tcl lightingsmoki1-10/+10
command mistakenly used vector instead of scalar emit (the more or less identical code in radeon is already correct). Seems like it would be broken ever since kms probably. Should fix bugs 22576, 26809.
2012-12-06r200: Initialize swrast before setting limitsStefan Dösinger1-10/+9
Otherwise the driver announces 4096 vertex shader constants and other way too high limits. NOTE: This is a candidate for stable release branches. Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2012-11-29mesa: Rename API_OPENGL to API_OPENGL_COMPAT.Paul Berry1-1/+1
This should help avoid confusion now that we're using the gl_api enum to distinguishing between core and compatibility API's. The corresponding enum value for core API's is API_OPENGL_CORE. Acked-by: Eric Anholt <eric@anholt.net> Acked-by: Matt Turner <mattst88@gmail.com> Acked-by: Kenneth Graunke <kenneth@whitecape.org>
2012-10-16mesa: Remove PROGRAM_WRITE_ONLY register type.Kenneth Graunke1-1/+0
More dead code. I'm not sure what it was for. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-10-16mesa: Remove support for named parameters.Kenneth Graunke1-2/+0
These were only part of NV_fragment_program, so we can kill them. The fact that PROGRAM_NAMED_PARAM appears in r200_vertprog.c is rather comedic, but also demonstrates that people just spam the various types of parameters everywhere because they're confusing. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-10-16mesa: Remove yet more remnants of NV_fragment_program.Kenneth Graunke1-1/+0
Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-10-15r200: Remove support for software-only NV_vertex_program.Eric Anholt2-9/+0
It wasn't supported in hardware, and the comments in the code indicated no known uses (similar to my experience on Intel) and a possible intent to remove it. Reviewed-by: Brian Paul <brianp@vmware.com>
2012-10-05radeon/r200: remove use of gl_context::DriverCtx fieldBrian Paul1-1/+6
2012-10-05radeon/r200: make radeon_context subclass of gl_contextBrian Paul9-22/+22
radeon_context now contains a gl_context, rather than a pointer to one. This will allow some minor core Mesa clean-up.
2012-10-03dri drivers: Link dricommon before dynamic librariesMatt Turner1-2/+2
I think libtool should be handling this for us, but the build fails for Jordan because libdricommon (a static library, which uses expat) appears before -lexpat on the linker command. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com> Tested-by: Jordan Justen <jordan.l.justen@intel.com>
2012-10-01build: Set visibility CFLAGS in dri/r200Matt Turner1-0/+1
2012-09-15mesa: remove FEATURE_OES_EGL_image define.Oliver McFadden1-3/+0
Signed-off-by: Oliver McFadden <oliver.mcfadden@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-09-05Don't cast the return value of malloc/reallocMatt Turner2-3/+2
This patch has been generated by the following Coccinelle semantic patch: // Don't cast the return value of malloc/realloc. // // Casting the return value of malloc/realloc only stands to hide // errors. @@ type T; expression E1, E2; @@ - (T) ( _mesa_align_calloc(E1, E2) | _mesa_align_malloc(E1, E2) | calloc(E1, E2) | malloc(E1) | realloc(E1, E2) )
2012-09-01mesa: s/FREE/free/Brian Paul1-1/+1
v2: replace instances in dri/common/ dirs Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-09-01mesa: s/CALLOC/calloc/Brian Paul2-3/+3
v2: replace instances in dri/common/ dirs Reviewed-by: Matt Turner <mattst88@gmail.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-08-29mesa: Enable GL_{ARB,APPLE}_vertex_array_object in all driversIan Romanick1-2/+0
This is a purely software extension. The drivers don't need to do any work to support it. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
2012-08-13dri: Pass API_OPENGL_CORE through to the driversIan Romanick1-7/+15
This forces the drivers to do at least some validation of context API and version before creating the context. In r100 and r200 drivers, this means that they don't do any post-hoc validation. v2: Actually reject compatibility profile 3.2+ contexts. Thanks Ken. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-08-07mesa: Replace VersionMajor/VersionMinor with a Version field.Eric Anholt1-3/+1
As we get into supporting GL 3.x core, we come across more and more features of the API that depend on the version number as opposed to just the extension list. This will let us more sanely do version checks than "(VersionMajor == 3 && VersionMinor >= 2) || VersionMajor >= 4". v2: Fix a bad <= 30 check. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2012-08-01radeon&r200: Add support for ARB_sampler_objectsPauli Nieminen3-12/+25
Preparation for the mandatory support of ARB_sampler_objects. I have tested this patch with rv280 only. Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com> Reviewed-by: Brian Paul <brianp@vmware.com>
2012-08-01r200: get rid of dubious aux scissor bitsRoland Scheidegger2-24/+15
no point in emitting aux scissor values if we a) never enable them b) never set the actual values plus it is enough to have that aux scissor enable reg (which we never set to enable) in one place not two.
2012-08-01r200: get rid of old gart memory functions from old dri1Roland Scheidegger2-32/+0
Those functions are SO dead.
2012-08-01radeon/r200: fix bogus clearsRoland Scheidegger1-26/+11
There were several problems with these functions (which are a remnant of dri1 hyperz mostly - should bring it back somehow someday). First, it would always do a swrast clear if the buffer to clear was a fbo. Second, for buffers we wouldn't handle the clear (I guess aux/accum?) we would actually still have tried to clear that later even when we already cleared it with swrast.
2012-08-01radeon/r200: fix bogus assert/scissor wrt width/height 2048Roland Scheidegger1-4/+4
This addresses one issue raised in bug #51658 discovered by Eugene St Leger. The assert is bogus since there's no problem with texture width/height being 2048 (the width/height programmed is width/height minus one). OTOH though the programmed size for scissor rect should be width/height minus one too otherwise bad things may happen (as it is inclusive, and there's not enough bits for more than a value of 2047).