mesa.git
16 years agoRevert "r300: Gracefully exit after GART memory is exhausted."
Oliver McFadden [Mon, 16 Jul 2007 16:21:21 +0000 (16:21 +0000)]
Revert "r300: Gracefully exit after GART memory is exhausted."

This reverts commit 9457bf62bbba3b9226ebbbea5dc7798ca22485f6.

Causes the X server to die with Compiz and Beryl.

16 years agor300: Reorder the vertprog code to the ARB specification.
Oliver McFadden [Mon, 16 Jul 2007 16:17:50 +0000 (16:17 +0000)]
r300: Reorder the vertprog code to the ARB specification.

16 years agofix bogus fb/drawable information
Roland Scheidegger [Mon, 16 Jul 2007 16:21:36 +0000 (18:21 +0200)]
fix bogus fb/drawable information

the framebuffer objects attached to drawables can have invalidate state
associated with them, since for the window framebuffer this is per-context
state and not per-fbo state. Since drivers rely on that information
(otherwise would need to check if currently the window-framebuffer is
bound in a lot of places) fix it up in _mesa_make_current (ugly).
(Brought over from i915tex_privbuffers, where it fixes xdemos/wincopy
when switching to front buffer rendering.)

16 years agofix segfault with i915 drivers in swrast drawpixels path when resizing windows
Roland Scheidegger [Mon, 16 Jul 2007 16:09:30 +0000 (18:09 +0200)]
fix segfault with i915 drivers in swrast drawpixels path when resizing windows

16 years agor300: Use the R300_PVS_UPLOAD_* defines.
Oliver McFadden [Mon, 16 Jul 2007 15:42:16 +0000 (15:42 +0000)]
r300: Use the R300_PVS_UPLOAD_* defines.

16 years agor300: Added the clip plane upload defines.
Oliver McFadden [Mon, 16 Jul 2007 15:39:12 +0000 (15:39 +0000)]
r300: Added the clip plane upload defines.

16 years agor300: Enable the vertprog point size again.
Oliver McFadden [Mon, 16 Jul 2007 12:21:38 +0000 (12:21 +0000)]
r300: Enable the vertprog point size again.

16 years agor300: Corrected position bug with position invariant option. Bug #11594.
Oliver McFadden [Mon, 16 Jul 2007 11:34:40 +0000 (11:34 +0000)]
r300: Corrected position bug with position invariant option. Bug #11594.

16 years agor300: Removed Vim modeline I left in the file by mistake. :-)
Oliver McFadden [Mon, 16 Jul 2007 07:17:22 +0000 (07:17 +0000)]
r300: Removed Vim modeline I left in the file by mistake. :-)

16 years agor300: Make sure the modified value of u_temp_i is respected.
Oliver McFadden [Mon, 16 Jul 2007 07:12:29 +0000 (07:12 +0000)]
r300: Make sure the modified value of u_temp_i is respected.

16 years agor300: Added a function for vertex program default opcode translation.
Oliver McFadden [Mon, 16 Jul 2007 06:38:12 +0000 (06:38 +0000)]
r300: Added a function for vertex program default opcode translation.

16 years agor300: Clean up the vertex program maximum length check.
Oliver McFadden [Mon, 16 Jul 2007 06:33:53 +0000 (06:33 +0000)]
r300: Clean up the vertex program maximum length check.

16 years agor300: Corrected indenting in r300_vertprog.c.
Oliver McFadden [Mon, 16 Jul 2007 06:27:29 +0000 (06:27 +0000)]
r300: Corrected indenting in r300_vertprog.c.

16 years agor300: Major vertex program code clean up and rework.
Oliver McFadden [Mon, 16 Jul 2007 06:16:35 +0000 (06:16 +0000)]
r300: Major vertex program code clean up and rework.

16 years agor300: Replaced the ugly VERTEX_SHADER_INSTRUCTION typedef.
Oliver McFadden [Mon, 16 Jul 2007 05:04:10 +0000 (05:04 +0000)]
r300: Replaced the ugly VERTEX_SHADER_INSTRUCTION typedef.

16 years agor300: Gracefully exit after GART memory is exhausted.
Oliver McFadden [Sun, 15 Jul 2007 01:17:54 +0000 (01:17 +0000)]
r300: Gracefully exit after GART memory is exhausted.

16 years agor300: Disable vertex program point size; it's almost certainly wrong.
Oliver McFadden [Sat, 14 Jul 2007 18:31:29 +0000 (18:31 +0000)]
r300: Disable vertex program point size; it's almost certainly wrong.

See the conversation between myself and Tommy Schultz Lassen on mesa3d-dev.

16 years agor300: Clean up the vertex program output assignment.
Oliver McFadden [Sat, 14 Jul 2007 18:11:45 +0000 (18:11 +0000)]
r300: Clean up the vertex program output assignment.

16 years agonouveau: nv10 and nv11,15 are different
Patrice Mandin [Sat, 14 Jul 2007 16:54:22 +0000 (18:54 +0200)]
nouveau: nv10 and nv11,15 are different

16 years agofix shader/info string length queries (bug 11588)
Jan Dvorak [Fri, 13 Jul 2007 22:36:00 +0000 (16:36 -0600)]
fix shader/info string length queries (bug 11588)

16 years agoPlay "nuke the typedef"
Ben Skeggs [Fri, 13 Jul 2007 13:39:24 +0000 (23:39 +1000)]
Play "nuke the typedef"

16 years agoRevert "r300: Corrected off-by-one error in r300_vertprog.c."
Oliver McFadden [Fri, 13 Jul 2007 09:39:23 +0000 (09:39 +0000)]
Revert "r300: Corrected off-by-one error in r300_vertprog.c."

This reverts commit 07ac2386f5c0ab9c2432d4b5e3490b1e13d033fc.

16 years agor300: Corrected off-by-one error in r300_vertprog.c.
Oliver McFadden [Fri, 13 Jul 2007 04:58:32 +0000 (04:58 +0000)]
r300: Corrected off-by-one error in r300_vertprog.c.

16 years agor300: Moved some hardware initialization into appropriate functions.
Oliver McFadden [Fri, 13 Jul 2007 02:11:58 +0000 (02:11 +0000)]
r300: Moved some hardware initialization into appropriate functions.

16 years agor300: Use a switch statement in r300UpdateCulling.
Oliver McFadden [Fri, 13 Jul 2007 01:45:05 +0000 (01:45 +0000)]
r300: Use a switch statement in r300UpdateCulling.

16 years agor300: Setup the back facing color bits correctly.
Oliver McFadden [Thu, 12 Jul 2007 23:52:06 +0000 (23:52 +0000)]
r300: Setup the back facing color bits correctly.

Apparently for back facing color to work you must set all 3 color bits; I guess
the hardware cannot handle them separately.

16 years agofix width/depth mix-up (bug 11577)
Brian [Fri, 13 Jul 2007 03:32:35 +0000 (21:32 -0600)]
fix width/depth mix-up (bug 11577)

16 years agofix swizzle-related bug 11534
Brian [Thu, 12 Jul 2007 20:50:53 +0000 (14:50 -0600)]
fix swizzle-related bug 11534

16 years agonv20 also don't support viewport_origin, like nv10
Patrice Mandin [Thu, 12 Jul 2007 16:36:41 +0000 (18:36 +0200)]
nv20 also don't support viewport_origin, like nv10

16 years agonouveau: match drm 0.0.9 interface
Ben Skeggs [Thu, 12 Jul 2007 01:08:17 +0000 (11:08 +1000)]
nouveau: match drm 0.0.9 interface

16 years agoclean-up of stencil code
Brian [Wed, 11 Jul 2007 22:33:15 +0000 (16:33 -0600)]
clean-up of stencil code

16 years agoMinor clean-up of polygon offset logic. Properly compute _MRD field.
Brian [Wed, 11 Jul 2007 22:19:51 +0000 (16:19 -0600)]
Minor clean-up of polygon offset logic. Properly compute _MRD field.

16 years agoImprove this demo in a few ways.
Brian [Wed, 11 Jul 2007 19:11:47 +0000 (13:11 -0600)]
Improve this demo in a few ways.

1. Use more reasonable hither/yon clip planes to make better use of shallow
(16-bit) z buffers.
2. Use different colors on cube faces to help detect Z fighting if it occurs.
3. Report GL_DEPTH_BITS on start-up.

16 years agor300: Added support for Back Facing Color.
Tommy Schultz Lassen [Wed, 11 Jul 2007 17:37:12 +0000 (17:37 +0000)]
r300: Added support for Back Facing Color.

16 years agor300: Corrected r300UpdateCulling; would only set font face if culling was set.
Tommy Schultz Lassen [Wed, 11 Jul 2007 17:35:35 +0000 (17:35 +0000)]
r300: Corrected r300UpdateCulling; would only set font face if culling was set.

16 years agonouveau: nv20 does not support hw scissors
Patrice Mandin [Wed, 11 Jul 2007 17:25:32 +0000 (19:25 +0200)]
nouveau: nv20 does not support hw scissors

16 years agobumped nouveau DRM interface version number
Arthur Huillet [Wed, 11 Jul 2007 00:48:40 +0000 (02:48 +0200)]
bumped nouveau DRM interface version number

16 years agoi915tex: Better procedure for dropping batchbuffer on virtual resolution change.
Michel Dänzer [Tue, 10 Jul 2007 09:02:18 +0000 (11:02 +0200)]
i915tex: Better procedure for dropping batchbuffer on virtual resolution change.

The previous procedure would often result in a GPU lockup.

16 years agoi915tex: Only wait for vblank when really necessary.
Michel Dänzer [Tue, 10 Jul 2007 08:54:51 +0000 (10:54 +0200)]
i915tex: Only wait for vblank when really necessary.

This avoids superfluous waits for vblank timing out under some circumstances.

16 years agoClear pointers to freed cliprects.
Michel Dänzer [Tue, 10 Jul 2007 08:49:28 +0000 (10:49 +0200)]
Clear pointers to freed cliprects.

Not doing this could lead to double frees under rare circumstances.

17 years agoFix size test bug in _mesa_test_proxy_teximage().
Brian [Sun, 8 Jul 2007 15:58:18 +0000 (09:58 -0600)]
Fix size test bug in _mesa_test_proxy_teximage().

width/height/depth == 0 is a legal texture size (no error generated).
Later, the texture will be considered incomplete, however, and texturing
will effectively be disabled.
See bug 11309.

17 years agoCheck if 'indices' parameter is NULL (bug 11314)
Brian [Sun, 8 Jul 2007 15:20:42 +0000 (09:20 -0600)]
Check if 'indices' parameter is NULL (bug 11314)

17 years agoChange float depthScale param to _mesa_unpack_depth_span() to GLuint depthMax.
Brian [Sun, 8 Jul 2007 15:02:36 +0000 (09:02 -0600)]
Change float depthScale param to _mesa_unpack_depth_span() to GLuint depthMax.

17 years agocheck depthScale value for optimized ushort->uint case (fixes bug 11474)
Brian [Sun, 8 Jul 2007 14:53:19 +0000 (08:53 -0600)]
check depthScale value for optimized ushort->uint case (fixes bug 11474)

17 years agoIn _swsetup_Translate(), update dest->attrib[FRAG_ATTRIB_COL0].
Brian [Fri, 6 Jul 2007 22:51:19 +0000 (16:51 -0600)]
In _swsetup_Translate(), update dest->attrib[FRAG_ATTRIB_COL0].

Also, check if we're in RGB vs. CI mode.  This fixes a problem with
incorrect rendering color seen with the redbook/polys demo.

17 years agoAdd case for GL_QUADS in i915_reduced_primitive_state().
Brian [Fri, 6 Jul 2007 22:50:13 +0000 (16:50 -0600)]
Add case for GL_QUADS in i915_reduced_primitive_state().

The t_dd_tritemp.h code can emit GL_QUADS primitives.  We need to catch
that case to determine if polygon stipple should be enabled.
Fixes bug reported by Carlos Diógenes on 4 July 2007.

17 years agoMerge branch 'master' of git+ssh://pmandin@git.freedesktop.org/git/mesa/mesa
Patrice Mandin [Fri, 6 Jul 2007 22:08:35 +0000 (00:08 +0200)]
Merge branch 'master' of git+ssh://pmandin@git.freedesktop.org/git/mesa/mesa

17 years agoNV_17 is different from NV_10
Patrice Mandin [Fri, 6 Jul 2007 21:59:29 +0000 (23:59 +0200)]
NV_17 is different from NV_10

17 years agoNV1X don't support VIEWPORT_ORIGIN in hardware
Patrice Mandin [Fri, 6 Jul 2007 21:55:51 +0000 (23:55 +0200)]
NV1X don't support VIEWPORT_ORIGIN in hardware

17 years agocall glutInit(), bug 11486
Xavier Bachelot [Fri, 6 Jul 2007 18:56:21 +0000 (12:56 -0600)]
call glutInit(), bug 11486

17 years agostencil pixel map didn't work in _mesa_unpack_stencil_span(), bug 11475
Brian [Thu, 5 Jul 2007 15:37:46 +0000 (09:37 -0600)]
stencil pixel map didn't work in _mesa_unpack_stencil_span(), bug 11475

17 years agoBe more consistant with paths in #includes. Eventually, eliminate a bunch of -I...
Brian [Wed, 4 Jul 2007 19:15:20 +0000 (13:15 -0600)]
Be more consistant with paths in #includes.  Eventually, eliminate a bunch of -I flags.

17 years agosupport more modes, added -f cmd line option
Brian [Wed, 4 Jul 2007 15:23:12 +0000 (09:23 -0600)]
support more modes, added -f cmd line option

17 years agoassorted clean-ups
Brian [Wed, 4 Jul 2007 15:22:15 +0000 (09:22 -0600)]
assorted clean-ups

17 years agofix LogicOp/bitmap problem, bug 11133
Eric Anholt [Wed, 4 Jul 2007 13:37:14 +0000 (07:37 -0600)]
fix LogicOp/bitmap problem, bug 11133

17 years agoadd fbdev/ to DEMO_FILES
Brian [Tue, 3 Jul 2007 21:46:38 +0000 (15:46 -0600)]
add fbdev/ to DEMO_FILES

17 years agor300: only init swtcl on tcl-less cards
Dave Airlie [Wed, 4 Jul 2007 05:29:31 +0000 (15:29 +1000)]
r300: only init swtcl on tcl-less cards

17 years agoadded vec2(vec4) constructor, bug 11404
Brian [Tue, 3 Jul 2007 17:41:56 +0000 (11:41 -0600)]
added vec2(vec4) constructor, bug 11404

17 years agoadd code for stpq, rgba writemasks in make_writemask(), bug 11404
Brian [Tue, 3 Jul 2007 17:41:21 +0000 (11:41 -0600)]
add code for stpq, rgba writemasks in make_writemask(), bug 11404

17 years agofix StepX/StepY typo
Brian [Tue, 3 Jul 2007 16:06:13 +0000 (10:06 -0600)]
fix StepX/StepY typo

17 years agouse _mesa_unpack_stencil_span() in draw_stencil_pixels(), bug 11457
Brian [Tue, 3 Jul 2007 14:53:49 +0000 (08:53 -0600)]
use _mesa_unpack_stencil_span() in draw_stencil_pixels(), bug 11457

17 years agofix GL_DOT3_RGBA texture combiner mode in generated fragment programs (bug #11030)
Roland Scheidegger [Tue, 3 Jul 2007 12:27:41 +0000 (14:27 +0200)]
fix GL_DOT3_RGBA texture combiner mode in generated fragment programs (bug #11030)

17 years agoadd const to wglSetPixelFormat() to match .h declaration
Brian [Mon, 2 Jul 2007 16:16:02 +0000 (10:16 -0600)]
add const to wglSetPixelFormat() to match .h declaration

17 years agoavoid unnecessary clamping of depth values (bug 11448)
Brian [Mon, 2 Jul 2007 14:46:57 +0000 (08:46 -0600)]
avoid unnecessary clamping of depth values (bug 11448)

17 years agor300: fix compiz crash on swtcl - doesn't fix compiz though.
Dave Airlie [Mon, 2 Jul 2007 07:21:45 +0000 (17:21 +1000)]
r300: fix compiz crash on swtcl - doesn't fix compiz though.

Compiz for some reason looks like ass, everything with textures
looks like it has a 2x width/height multiplier on the texture coords...

17 years agoCompute the amount of time to sleep on idle event using timers as reference.
Claudio Ciccani [Sun, 1 Jul 2007 10:24:44 +0000 (12:24 +0200)]
Compute the amount of time to sleep on idle event using timers as reference.

17 years agoFixed initialization of render buffer and deinitialization of context.
Claudio Ciccani [Sun, 1 Jul 2007 10:23:12 +0000 (12:23 +0200)]
Fixed initialization of render buffer and deinitialization of context.

17 years agor300: oops wrong logic for swtcl
Dave Airlie [Sun, 1 Jul 2007 09:27:26 +0000 (19:27 +1000)]
r300: oops wrong logic for swtcl

17 years agor300: oops turn back off cmd buf debugging
Dave Airlie [Sun, 1 Jul 2007 08:52:47 +0000 (18:52 +1000)]
r300: oops turn back off cmd buf debugging

17 years agoMerge branch 'r300-swtcl'
Dave Airlie [Sun, 1 Jul 2007 08:50:14 +0000 (18:50 +1000)]
Merge branch 'r300-swtcl'

17 years agofix tabbing
Dave Airlie [Sun, 1 Jul 2007 08:46:39 +0000 (18:46 +1000)]
fix tabbing

17 years agor300: add authorship
Dave Airlie [Sun, 1 Jul 2007 08:43:22 +0000 (18:43 +1000)]
r300: add authorship

17 years agor300: remove some unused code
Dave Airlie [Sun, 1 Jul 2007 08:42:27 +0000 (18:42 +1000)]
r300: remove some unused code

17 years agor300: cleanup some of the swtcl code
Dave Airlie [Sun, 1 Jul 2007 08:40:26 +0000 (18:40 +1000)]
r300: cleanup some of the swtcl code

17 years agor300: fixup manytex, we needed to emit the vic/vir/vof every time
Dave Airlie [Sun, 1 Jul 2007 08:29:23 +0000 (18:29 +1000)]
r300: fixup manytex, we needed to emit the vic/vir/vof every time

17 years agor300: fix tabbing
Dave Airlie [Sun, 1 Jul 2007 07:15:50 +0000 (17:15 +1000)]
r300: fix tabbing

17 years agosimplify INIT_SPAN code
Brian [Sat, 30 Jun 2007 03:52:18 +0000 (21:52 -0600)]
simplify INIT_SPAN code

17 years agos/SPAN_RGBA/SPAN_INDEX/ in clear_ci_buffer_with_masking()
Brian [Sat, 30 Jun 2007 03:33:59 +0000 (21:33 -0600)]
s/SPAN_RGBA/SPAN_INDEX/ in clear_ci_buffer_with_masking()

17 years agoUndo some prev glDraw/CopyPixel changes which fixed a bug in which colors were overwr...
Brian [Sat, 30 Jun 2007 03:29:30 +0000 (21:29 -0600)]
Undo some prev glDraw/CopyPixel changes which fixed a bug in which colors were overwritten by interpolating attributes.

Now just set the span->arrayAttribs mask in glDraw/CopyPixels and be sure
we don't overwrite the values in interpolate_active_attribs().

17 years agoObsolete
Brian [Sat, 30 Jun 2007 03:13:20 +0000 (21:13 -0600)]
Obsolete

17 years agooverhaul point rasterization, no longer use s_pointtemp.h
Brian [Sat, 30 Jun 2007 03:12:46 +0000 (21:12 -0600)]
overhaul point rasterization, no longer use s_pointtemp.h

17 years agoregenerated
Brian [Fri, 29 Jun 2007 13:52:43 +0000 (07:52 -0600)]
regenerated

17 years agonouveau: match drm changes (0.0.7)
Ben Skeggs [Sat, 9 Jun 2007 17:05:05 +0000 (03:05 +1000)]
nouveau: match drm changes (0.0.7)

17 years agonouveau: NV30_TCL viewport/scissor fixes
Ben Skeggs [Fri, 8 Jun 2007 03:27:57 +0000 (13:27 +1000)]
nouveau: NV30_TCL viewport/scissor fixes

17 years agobring over 7.0 doc changes
Brian [Thu, 28 Jun 2007 22:44:24 +0000 (16:44 -0600)]
bring over 7.0 doc changes

17 years agoAdd a few missing GL 2.0 entrypoints, regenerate related files.
Brian [Thu, 28 Jun 2007 22:34:40 +0000 (16:34 -0600)]
Add a few missing GL 2.0 entrypoints, regenerate related files.

Specifically:
  glVertexAttrib4bv
  glVertexAttrib4iv
  glVertexAttrib4ubv
  glVertexAttrib4uiv
  glVertexAttrib4usv

17 years agoa variety of fixes for MingW
zhang [Thu, 28 Jun 2007 14:12:52 +0000 (08:12 -0600)]
a variety of fixes for MingW

17 years agoremove t_save_api.c and some other obsolete files, may be more
Brian [Thu, 28 Jun 2007 13:18:43 +0000 (07:18 -0600)]
remove t_save_api.c and some other obsolete files, may be more

17 years agoremove obsolete t_save_api.c
Brian [Thu, 28 Jun 2007 13:15:37 +0000 (07:15 -0600)]
remove obsolete t_save_api.c

17 years agouse larger point/sprite size
Brian [Thu, 28 Jun 2007 13:15:11 +0000 (07:15 -0600)]
use larger point/sprite size

17 years agoincrease MAX_POINT_SIZE to 60
Brian [Thu, 28 Jun 2007 13:13:39 +0000 (07:13 -0600)]
increase MAX_POINT_SIZE to 60

17 years agoXXX comment about point clamping
Brian [Thu, 28 Jun 2007 13:13:20 +0000 (07:13 -0600)]
XXX comment about point clamping

17 years agoadded comment, remove dead code
Brian [Thu, 28 Jun 2007 13:12:55 +0000 (07:12 -0600)]
added comment, remove dead code

17 years agor300: Initial work on merging the real and generated vertex program functions.
Oliver McFadden [Wed, 20 Jun 2007 14:24:04 +0000 (14:24 +0000)]
r300: Initial work on merging the real and generated vertex program functions.

17 years agor300: Should use inst_count not 0 for R300_PVS_CNTL_3_PROGRAM_UNKNOWN_SHIFT.
Oliver McFadden [Wed, 20 Jun 2007 12:42:19 +0000 (12:42 +0000)]
r300: Should use inst_count not 0 for R300_PVS_CNTL_3_PROGRAM_UNKNOWN_SHIFT.

17 years agor300: The vpi, vpp, and vps counts are already initialized; don't do it twice.
Oliver McFadden [Wed, 20 Jun 2007 12:23:47 +0000 (12:23 +0000)]
r300: The vpi, vpp, and vps counts are already initialized; don't do it twice.

17 years agor300: Clean up the vertex program state code slightly; still needs lots of work.
Oliver McFadden [Wed, 20 Jun 2007 12:13:44 +0000 (12:13 +0000)]
r300: Clean up the vertex program state code slightly; still needs lots of work.

17 years agor300: Vertex program position end bits are known.
Oliver McFadden [Wed, 20 Jun 2007 12:03:42 +0000 (12:03 +0000)]
r300: Vertex program position end bits are known.

Possibly performance may improve by setting it to the last instruction that
writes result.position, rather than the last instruction in the vertex program.

17 years agor300: Removed unused vap_param structure.
Oliver McFadden [Wed, 20 Jun 2007 11:45:07 +0000 (11:45 +0000)]
r300: Removed unused vap_param structure.

17 years agor300: Cleaned up long lines in the vertex functions.
Oliver McFadden [Wed, 20 Jun 2007 11:42:53 +0000 (11:42 +0000)]
r300: Cleaned up long lines in the vertex functions.