Commit graph

26245 commits

Author SHA1 Message Date
Alex Deucher
9c4c9f2837 r600: remove extraneous semicolon 2009-07-29 18:12:33 -04:00
Alex Deucher
b116f57bac r600: fix texture pitch alignment
fixes texwrap
2009-07-29 18:06:20 -04:00
Alex Deucher
1e207ba9c1 r600: minor fixes
- set MAX_LOD properly
- min texel pitch is 8 texels
- emit old command buffer when re-initing base state
2009-07-29 17:25:56 -04:00
Nicolai Hähnle
0723cd1b0a r300: Cleanup r300_fragment_program_code
Configuration register values are now stored directly in that structure.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-29 21:15:00 +02:00
Nicolai Hähnle
d3a1fc62f4 r300/compiler: Adapt AllocateHwInputs interface to common usage pattern
Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
2009-07-29 21:15:00 +02:00
Eric Anholt
88ebf514a4 swrast: enable ARB_vertex_array_object.
It was getting enabled anyway but without the entrypoints installed.  Whoops.
2009-07-29 11:17:53 -07:00
Ian Romanick
8a430dd4da Indentation fixes. 2009-07-29 09:50:06 -07:00
Ian Romanick
4c5879ff31 ARB prog parser: Set NumAttributes based on the number of attribs read 2009-07-29 09:47:14 -07:00
Keith Whitwell
6842829539 mesa/st: short-circuit glFinish calls on WIN32 only
Windows opengl32.dll calls glFinish prior to every swapbuffers, which
makes it pretty hard to get decent performance...

Work around by mapping finish to flush on PIPE_OS_WINDOWS.  This is
conformant, though it might confuse poorly-written benchmarks which
attempt to measure a single event rather than figuring out the rate of
continuous processing.
2009-07-29 12:48:05 +01:00
Keith Whitwell
2420b283b7 mesa/st: recognize no-op scissor state when checking clear_with_quads
Some apps enable scissor but set the rectangle to the dimensions of
the window.  Don't let this force us onto a slower clear path.
2009-07-29 12:48:04 +01:00
Keith Whitwell
4d99e14535 util: _debug_printf should print even when DEBUG is not defined
The leading underscore is meaningful...  This function is used by
_warning and _error functions as well as the more common
debug_printf().

debug_printf (without underscore) gets turned off when DEBUG is
disabled, but warning/error messages still use this function to get
their message out.
(cherry picked from commit 0ac879dca7)
2009-07-29 12:48:04 +01:00
Cooper Yuan
03607708b0 r600: emit fog color in PS input map, fix fog related applications 2009-07-29 15:31:41 +08:00
Cooper Yuan
0f6d3aece7 R6xx/r7xx: VS export fog color as parameter 2009-07-29 15:23:56 +08:00
Ian Romanick
648dac4251 ARB prog parser: Set component negation mask for SWZ instruction 2009-07-28 21:57:28 -07:00
Ian Romanick
86b33b5649 ARB prog parser: Set correct register file for OUTPUT variables 2009-07-28 21:56:42 -07:00
Ben Skeggs
693f900b16 nv50: support non-blocking query_result() 2009-07-29 11:19:52 +10:00
Ben Skeggs
625bc0cfa2 nouveau: map_range returning -EBUSY isn't necessarily an error 2009-07-29 10:58:05 +10:00
Christoph Bumiller
84166a021f nv50: correct zeta formats
What was Z24S8 before is actually S8Z24, and what we had for Z16
is actually X8Z24. Now, we also have the REAL Z24S8 and I added
Z32_FLOAT as well; most of the formats need different tile_flags.
2009-07-29 09:40:35 +10:00
Christoph Bumiller
987c59c486 nv50: use new 2D surface format names 2009-07-29 09:40:35 +10:00
Christoph Bumiller
1f17b8ff59 nv50: support more vtxelt formats
NOTE: we must not try to emit buffer relocations when
vtxbuf_nr is 0 but vtxelt_nr is not
2009-07-29 09:40:35 +10:00
Christoph Bumiller
72813ba5b6 nv50: should use uint32_t ptr in draw_elements_inline_u32 2009-07-29 09:40:34 +10:00
Christoph Bumiller
df189c9efc nv50: TIC/TSC fixes and additions
Red and blue were interchanged in TIC.
Add border color and some formats.
2009-07-29 09:40:34 +10:00
Christoph Bumiller
f498ccd654 nv50: fix sx/dx typo in transfer_rect_m2mf 2009-07-29 09:40:34 +10:00
Christoph Bumiller
d1b9183e64 nv50: fix viewport transform
The translation also needs to be inverted, and in bypass mode
the state tracker incorrectly assumes that Y = 0 = TOP, so we
need inversion there to; NDC clipping has to be deactivated
explicitly.
2009-07-29 09:40:34 +10:00
Christoph Bumiller
b0341f994f nv50: use correct scissor reg 2009-07-29 09:40:33 +10:00
Alex Deucher
8c56029b1e r600: fix tex clamp modes
This makes texwrap look better.
2009-07-28 18:09:38 -04:00
Alex Deucher
e629c50e2b r600: implement texture border color 2009-07-28 17:59:54 -04:00
Alex Deucher
719abd7fc0 r600: fix flat shading
Set the flat shading bit on the appropriate PS input
depending on the type of attribute it is.  The VS output
and PS input routing should probably be made more dynamic
at some point.  We may want to use semantic ids to make
it easier.
2009-07-28 16:58:41 -04:00
Alex Deucher
dbdb3952c1 r600: don't call r700UpdateShaders twice for each render 2009-07-28 15:58:01 -04:00
Alex Deucher
b1f7c844a3 r600: move r700TranslateFragmentShader into r700UpdateShaders 2009-07-28 15:53:45 -04:00
RALOVICH, Kristóf
45f4e8842e glx: assign per screen driver configs (DRISW) 2009-07-28 10:35:56 -06:00
RALOVICH, Kristóf
d090ba9e00 glx: assign per screen driver configs (DRI) 2009-07-28 10:35:56 -06:00
RALOVICH, Kristóf
82f4dc21cc glx: assign per screen driver configs (DRI2) 2009-07-28 10:35:56 -06:00
RALOVICH, Kristóf
e32b601e7d glx: properly release DRI configs
Release per screen DRI driver configs during screen destruction.
2009-07-28 10:35:56 -06:00
RALOVICH, Kristóf
ce0ad53281 glx: cache DRI configs in __GLXscreenConfigsRec 2009-07-28 10:35:56 -06:00
Alex Deucher
4d648523aa r600: disable flat shade fix in 506bacb8e4
This breaks textures.  We need to only set this bit for
attributes that that need flat shading.
2009-07-28 11:12:36 -04:00
Brian Paul
d2f6d6ce49 Merge branch 'mesa_7_5_branch'
Conflicts:

	Makefile
	configs/default
	docs/relnotes.html
	src/mesa/main/version.h
2009-07-28 08:58:25 -06:00
Brian Paul
94726bc69e gallium: minor code/comments clean-up 2009-07-28 08:55:43 -06:00
Chia-I Wu
a744a496d5 egl: Comment out unused tables in_eglFillInConfigs
This silences a compiler warning.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-07-28 08:55:43 -06:00
Vinson Lee
bc60b88411 progs/trivial: add missing files to Makefile, .gitignore 2009-07-28 08:54:48 -06:00
Cooper Yuan
506bacb8e4 R6xx/r7xx: enable flat shading, this can fix quadric/accanti/accpersp 2009-07-28 13:57:07 +08:00
Ian Romanick
aafd576259 ARB prog parser: Add support for GL_MESA_texture_array
This isn't really tested yet as no drivers actually support this extension.
2009-07-27 17:22:21 -07:00
Ian Romanick
41d5696628 ARB prog parser: More robust error message for bad OPTION string 2009-07-27 17:10:01 -07:00
Ian Romanick
1edd13bf23 ARB prog parser: Add support for GL_ARB_fragment_program_shadow
Passes the piglit asmparsertest shadow-0[123].txt tests and
progs/demos/shadowtex.
2009-07-27 16:24:49 -07:00
Ian Romanick
88018e2e07 ARB prog parser: Fix handling of RECT
Require that GL_{ARB,EXT,NV}_texture_rectangle be supported before
allowing use of RECT texture target.
2009-07-27 15:47:52 -07:00
Ian Romanick
4821099429 ARB prog: Fix parameters to _mesa_calloc
So totally awesome that _mesa_calloc has a different parameter
signature than calloc.  Why do these libc wrappers still exist?!?
2009-07-27 15:46:07 -07:00
Alex Deucher
fcf317ac16 r600: fix _REV texture format component swizzles 2009-07-27 18:14:45 -04:00
Brian Paul
6c03563af7 mesa: regenerated file 2009-07-27 15:42:29 -06:00
RALOVICH, Kristóf
8363dff251 glx: remove XTHREADS support 2009-07-27 15:38:04 -06:00
RALOVICH, Kristóf
27e55588e0 docs: do not mentions xthreads any more 2009-07-27 15:38:04 -06:00