Commit Graph

22332 Commits

Author SHA1 Message Date
Brian Paul 154cd7a723 i965: add support for float literal instruction operands
Call the get_src_reg_imm() function when it's permissible to generate a
literal value src register.
2009-04-03 09:07:03 -06:00
Brian Paul 966cd4f1af i965: remove 'nr' param from get_src/dst_reg() functions
The value was always 1.
2009-04-03 09:07:03 -06:00
Brian Paul f1b9a5cff1 i965: fix comment typo 2009-04-03 09:07:03 -06:00
Brian Paul d5346a925c i965: comments, clean-up in prepare_wm_surfaces() 2009-04-03 09:07:03 -06:00
Brian Paul 5d7f3ae15c i965: remove unneeded #includes 2009-04-03 09:07:03 -06:00
Brian Paul 7709b26e6b i965: formatting clean-ups 2009-04-03 09:07:03 -06:00
Brian Paul 4999721022 i965: comments, whitespace changes 2009-04-03 09:07:03 -06:00
Brian Paul c82851598f i965: rename scratch_buffer -> scratch_bo to be consistant with other buffers 2009-04-03 09:07:03 -06:00
Brian Paul bf28b576cb i965: fix indentation 2009-04-03 09:07:03 -06:00
Brian Paul 9f146943ec i965: whitespace changes, comments 2009-04-03 09:07:03 -06:00
Michal Krol dfab375c07 tgsi/text: Allow optional component selection for indirect registers. 2009-04-03 17:06:36 +02:00
Michal Krol 3b7c9a9a16 python/regress: vertex shader FRC test does not use IN[1]. 2009-04-03 16:37:34 +02:00
Michal Krol 37661516ea python/regress: Add relative addressing tests. 2009-04-03 16:37:13 +02:00
Michal Krol d2ed91201e util/debug: Initialise local variables. 2009-04-03 14:59:25 +02:00
Michal Krol cc770e0a0c tgsi/text: Allow -|src| variant of -(|src|). 2009-04-03 14:59:22 +02:00
Alan Hourihane f7039fde4f mesa: ensure pbo stencil buffers are mapped before use 2009-04-03 12:49:53 +01:00
Michal Krol 016052c18f python/regress: Add vertex shader source modifier tests. 2009-04-03 08:27:50 +02:00
Christoph Bumiller 030533dd10 nv50: fix viewport state update 2009-04-03 08:33:19 +10:00
Roland Scheidegger ebc1478e50 mesa: fix TexParameter functions
premature return in TexParameterf caused mesa to never call Driver.TexParameter
breaking drivers relying on this (fix bug #20966).
While here, also fix using ctx->ErrorValue when deciding to call
Driver.TexParameter. Errors are sticky and uncleared errors thus would cause
this to no longer get called. Since we thus need return value of
set_tex_parameter[if] can also optimize this to only call when value changed.
2009-04-02 23:38:34 +02:00
Brian Paul 7b9bf39543 mesa: don't call ctx->Driver.ReadPixels() if width or height is zero 2009-04-02 13:05:55 -06:00
Brian Paul f6a3f1f52a mesa: don't call ctx->Driver.Draw/CopyPixels() if width or height is zero 2009-04-02 13:05:22 -06:00
Brian Paul 46d09cb53d glsl: fix segfault in linker when vertex or fragment shader was missing 2009-04-02 11:15:53 -06:00
Jakob Bornecrantz 29a1ed599b progs: Ignores 2009-04-02 17:00:25 +02:00
Michal Krol 39c2fae657 python/regress: Do not generate HTML summary for vertex shader test. 2009-04-02 12:21:50 +02:00
Thomas Hellstrom 96fd3df59a glx: MakeCurrent fixes.
1) If MakeContextCurrent is called with (NULL, None, None), Don't
   send the request to the X server if the current context is direct.
2) Return BadMatch in some error cases according to the glx spec.
3) If MakeContextCurrent is called for a context which is current in
   another thread, return BadAccess according to the glx spec.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-02 11:33:20 +02:00
Thomas Hellstrom 8e753d0404 dri glx: Fix dri_util::driBindContext
1) Don't error-check here. It's done in glx makeCurrent.
2) Allow ctx and the dri drawables to be NULL for future use. This is
   currently blocked in glx makeCurrent.
3) Avoid updating dri drawables unless they are completely uninitialized.
   Since the updating was done outside of the lock, the driver need to
   verify and redo it anyway.

Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-02 11:33:19 +02:00
Thomas Hellstrom c952b3e907 dri glx: Propagate driver MakeCurrent errors.
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
2009-04-02 11:33:19 +02:00
Michal Krol fbabeb9b56 python/regress: Do not create zbuf for vertex shader test. 2009-04-02 10:00:11 +02:00
Michal Krol 336a4f84e8 python/regress: Add more vertex shader test cases. 2009-04-02 10:00:09 +02:00
Brian Paul bd32640f77 swrast: remove unused integer lerp functions 2009-04-01 20:24:23 -06:00
Brian Paul 7fbae9f41d mesa: get rid of gl_texture_object::_BorderChan 2009-04-01 20:24:23 -06:00
Brian Paul 79c55e55f8 dri: use BorderColor instead of _BorderChan 2009-04-01 20:24:23 -06:00
Brian Paul 7aed2b0c30 swrast: remove old texture_apply() code; always use texture combine code 2009-04-01 20:24:22 -06:00
Brian Paul 84b24efe8d swrast: fix bad optimization check 2009-04-01 20:24:22 -06:00
Brian Paul 0d8d904823 swrast: remove unused parameter 2009-04-01 20:24:22 -06:00
Brian Paul aef2e1c1dc swrast: minor improvements, clean-ups in texcombine code 2009-04-01 20:24:22 -06:00
Brian Paul efe3d10aea mesa: simplify ycbcr->rgb conversion code 2009-04-01 20:24:22 -06:00
Brian Paul 611128365d mesa: convert more texture fetch functions to return GLfloat 2009-04-01 20:24:22 -06:00
Brian Paul cb5bd7d4d4 mesa: switch texel fetch functions from GLchan to GLfloat 2009-04-01 20:24:22 -06:00
Brian Paul 0695413d2b swrast: use float4_array typedef to simplify the code a bit 2009-04-01 20:24:22 -06:00
Brian Paul bd9b2be828 mesa: texture combine clean-ups
Use MAX_COMBINER_TERMS instead of 4.
Rename some vars.
Update comments.
2009-04-01 20:20:03 -06:00
Brian Paul a35ad020f9 swrast: refactor depth/shadow sampling code 2009-04-01 20:17:19 -06:00
Brian Paul 933f3b13c3 swrast: general clean-up of texture combine code 2009-04-01 20:17:19 -06:00
Brian Paul de2afd8688 swrast: do texture sampling/combining in floating point
The code's cleaner and a step toward supporting float-valued texture sampling.
Some optimizations for common cases can be added and re-enabled...
2009-04-01 20:17:19 -06:00
Brian Paul f8304bf1ed demos: added progs/glsl/linktest.c to test linking of separate compilation units 2009-04-01 19:54:35 -06:00
Brian Paul 49fb750a68 glsl: implement compiling/linking of separate compilation units
A shader program may consist of multiple shaders (source code units).
If we find there are unresolved functions after compiling the unit that
defines main(), we'll concatenate all the respective vertex or fragment
shaders then recompile.

This isn't foolproof but should work in most cases.
2009-04-01 19:54:35 -06:00
Brian Paul 1ab225017e mesa: use correct tex unit lod bias for TXB instruction 2009-04-01 18:50:07 -06:00
Brian Paul 9cc79fc2dc swrast: fix glDrawBuffer(GL_FRONT_AND_BACK)
We weren't putting the right colors into the back buffer in this mode.
2009-04-01 18:44:15 -06:00
Brian Paul e4b27b4a69 mesa: fix a recursive display list problem
This fixes an issue when compiling glCallList() into another display list
when the mode is GL_COMPILE_AND_EXECUTE.

Before, the call to glCallList() called _mesa_save_CallList() which called
neutral_CallList() which then called _mesa_save_CallList() again.  In the
end, the parent display list contained two calls to the child display list
instead of one.

Let's be on the lookout for regressions caused by this change for a while
before we cherry-pick this elsewhere.
2009-04-01 17:39:26 -06:00
Corbin Simpson 935e6b1924 r300-gallium: Translate vertex shader magic numbers. 2009-04-01 15:52:32 -07:00