summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/dri/r300
AgeCommit message (Collapse)Author
2009-05-18Merge branch 'mesa_7_5_branch'Brian Paul
Conflicts: Makefile src/mesa/main/version.h
2009-05-14r300: Make sure to drop current hardware state reference to texture objects.Michel Dänzer
Fixes potential texture object leaks.
2009-05-01mesa: in glReadBufer() set _NEW_BUFFERS, not _NEW_PIXELBrian Paul
Since GL_READ_BUFFER is historically part of the gl_pixel_attrib group it made sense to signal changes with _NEW_PIXEL. But now with FBOs it's also part of the framebuffer state. Now _NEW_PIXEL strictly indicates pixels transfer state changes. This change avoids framebuffer state validation when any random bit of pixel-transfer state is set. DRI drivers updated too: don't check _NEW_COLOR when updating framebuffer state. I think that was just copied from the Xlib driver because we care about dither enable/disable state there.
2009-05-01Merge branch 'const-buffer-changes'Brian Paul
Conflicts: src/mesa/drivers/dri/i965/brw_curbe.c src/mesa/drivers/dri/i965/brw_vs_emit.c src/mesa/drivers/dri/i965/brw_wm_glsl.c
2009-04-30r300: Increase reference count of texture objects referenced by current state.Michel Dänzer
Fixes a use-after-free reported in http://bugs.freedesktop.org/show_bug.cgi?id=20539, so this possibly fixes that bug. It has been confirmed to fix http://bugs.freedesktop.org/show_bug.cgi?id=17895 .
2009-04-27r300: always emit output insts after all KIL instsMaciej Cencora
2009-04-22r200/r300/r500: add _NEW_PROGRAM_CONSTANTS flagBrian Paul
Make sure we detect constant buffer changes indicated by the new flag. Should be able to remove _NEW_PROGRAM (and _NEW_MODELVIEW, _NEW_LIGHT, etc) from several places (someday.
2009-04-21r300: r300 hw doesn't support any input modifiers in tex instsMaciej Cencora
2009-04-20r300: fix register-negate branch merge regressionMaciej Cencora
2009-04-14mesa: merge the prog_src_register::NegateBase and NegateAbs fieldsBrian Paul
There's really no need for two negation fields. This came from the GL_NV_fragment_program extension. The new, unified Negate bitfield applies after the absolute value step.
2009-04-01dri: use BorderColor instead of _BorderChanBrian Paul
2009-03-25r300: cleanup swtcl a littleMaciej Cencora
- remove disabled code - silence compiler warnings (uinitialized values) - remove unneeded code
2009-03-25r300_cmdbuf.c: convert cast to a form supported by Sun ccAlan Coopersmith
Fixes Sun cc error: "r300_cmdbuf.c", line 142: invalid cast expression Signed-off-by: Alan Coopersmith <alan.coopersmith@sun.com>
2009-03-25r300: Texture size limit cleanups.Michel Dänzer
Since core Mesa MAX_TEXTURE_LEVELS was bumped, we were incorrectly advertising a maximum texture size of 4096 on older chips, causing corrupted menu text in Extreme Tux Racer or Armagetron. Also make sure our texture image array can actually hold all the mipmap levels we support...
2009-03-07r300: remove assignment to removed StringPos fieldBrian Paul
2009-03-07mesa: gl_register_file enum typedefBrian Paul
2009-03-07r300: shut up valgrindMaciej Cencora
It complained about uninitialized values Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06r300: fix depth write regression (found by Nicolai Haehnle)Maciej Cencora
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06r300: enable EXT_fog_coord extensionMaciej Cencora
Remove fixed function fog setup. Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06r300: route fog coord and W pos correctlyMaciej Cencora
Also cleanup sw tcl vertex buffer setup Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06r300: rewrite and hopefully simplify RS setupMaciej Cencora
Testing and regression fixes by Markus Amsler Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06r300: add few macros for RS setupMaciej Cencora
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06r300: silence valgrindMaciej Cencora
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06r300: Print reg address when debugging is enabledMaciej Cencora
Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-03-06r300: don't crash on sw tcl hw if point size vertex attrib is sentMaciej Cencora
2009-03-02mesa: use Stencil._Enabled field instead of Stencil.EnabledBrian Paul
2009-02-28mesa: rename, reorder FRAG_RESULT_x tokensBrian Paul
s/FRAG_RESULT_DEPR/FRAG_RESULT_DEPTH/ s/FRAG_RESULT_COLR/FRAG_RESULT/COLOR/ Remove FRAG_RESULT_COLH (NV half-precision) output since we never used it. Next, we might merge the COLOR and DATA outputs (COLOR0, COLOR1, etc).
2009-02-21mesa: use an array for current texture objectsBrian Paul
Use loops to consolidate lots of texture object code.
2009-02-14r300: Redirect constant TEX coordinatesNicolai Haehnle
R3xx/R5xx fragment program texture constants must come from a hardware register instead of the constant file, so we redirect if necessary during the native rewrite phase. The symptoms of this bug started appearing when the Mesa fixed function texenvprogram code started using STATE_CURRENT_ATTRIB constants for texture coordinates when the corresponding attributes were constant across all vertices. Signed-off-by: Nicolai Haehnle <nhaehnle@gmail.com>
2009-02-04r300: make the macros safe. add missing parenthesis.Maciej Cencora
2009-02-04r300: Fix EXP2 fogMaciej Cencora
2009-01-28Make GL_ARB_draw_buffers mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-28Make GL_{EXT,SUN}_multi_draw_arrays and GL_IBM_multimode_draw_arrays mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-28Make GL_ARB_vertex_buffer_object mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-28Make GL_ARB_multisample mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-28Make GL_ARB_texture_compression mandatoryIan Romanick
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
2009-01-23r300: Enable GL_ATI_separate_stencil in R300Ian Romanick
At this point, GL_EXT_stencil_two_side should probably be disabled. It may be worth leaving it enabled because it has GLX protocol while GL_ATI_separate_stencil does not. I'll leave it to one of the r300 maintainers to make the call.
2009-01-23Track two sets of back-face stencil stateIan Romanick
Track separate back-face stencil state for OpenGL 2.0 / GL_ATI_separate_stencil and GL_EXT_stencil_two_side. This allows all three to be enabled in a driver. One set of state is set via the 2.0 or ATI functions and is used when STENCIL_TEST_TWO_SIDE_EXT is disabled. The other is set by StencilFunc and StencilOp when the active stencil face is set to BACK. The GL_EXT_stencil_two_side spec has more details. http://opengl.org/registry/specs/EXT/stencil_two_side.txt
2009-01-14r300: work-around FRAG_BIT_FOGC warning/errorBrian Paul
See bug 17929. Fog doesn't actually work, but the often complained about warning is silenced.
2008-12-29R300: missing semicolonAlex Deucher
2008-12-28r300: remove the unknowns from the indx_buffer codeDave Airlie
2008-10-01Unify ARB_depth_texture and SGIX_depth_textureIan Romanick
The ARB extension is a superset of the older SGIX extension. Any hardware that can support the SGIX version can also support the ARB version. In Mesa, any driver that supports one also supports the other. This unification just simplifies some bits of code.
2008-09-22r300: Adapt to the removal of _tnl_ProgramCacheInit() and friends.Michel Dänzer
2008-09-18mesa: added "main/" prefix to includes, remove some -I paths from ↵Brian Paul
Makefile.template
2008-08-19r5xx: Final fog option fix.Corbin Simpson
Is there some kind of git hook we could use to keep me from committing after like 10PM or so?
2008-08-19r5xx: Don't squish GL context when using FogOptionCorbin Simpson
2008-08-18r5xx: Enable fog options.Corbin Simpson
This uses fog HW instead of fragment programs. If it breaks you, let me know!
2008-08-17r5xx: Add DDX and DDY instructions.Corbin Simpson
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2008-08-14r300: Fix 3D texture support.Michel Dänzer
2008-08-05dri: Fix write/read depth buffer issue under 16bpp mode. See bug #16646Xiang, Haihao