Keith Whitwell
6175653d0b
gallium: proper constructor and destructor for tgsi_exec_machine
...
Centralize the creation, initialization and destruction of this struct.
Use align_malloc instead of home-brew alternatives.
2009-07-16 09:53:07 +01:00
Alex Deucher
11606e873d
Fix more merge fallout
2009-07-16 02:59:36 -04:00
Kevin DeKorte
92a2f0164a
R6xx/r7xx: warning fixes
2009-07-15 17:13:09 -04:00
Richard Li
01b793ec7d
R6xx/r7xx: fix missing vertex stream
...
Somehow context->radeon.tcl.aos[j].bo is not null sometimes,
but it is safe for now because it is only a pointer to
dma.current so overwriting it would not hurt anything.
2009-07-15 17:00:42 -04:00
Alex Deucher
1e8a6068ee
radeon bo: Fix merge fall out
2009-07-15 15:59:04 -04:00
Alex Deucher
582838a666
R6xx/r7xx: more Makefile fixes
2009-07-15 15:40:35 -04:00
Alex Deucher
2ab328e5e4
Fix r600 makefile for lastest CS changes
2009-07-15 15:23:11 -04:00
Alex Deucher
c5c19919ce
Merge branch 'master' of git+ssh://agd5f@git.freedesktop.org/git/mesa/mesa into r6xx-rewrite
...
This builds, but I get an assertion in radeonGetLock() due to
the drawable being null.
2009-07-15 14:17:07 -04:00
Luca Barbieri
6b7b13b5eb
softpipe: limit blend results to [0,1]
2009-07-15 11:34:36 -06:00
Brian Paul
d970313b66
Fix state flag dependencies for fixed function fragment program updates.
...
I started looking into why _NEW_ARRAY punishes us, and while annotating
dependencies noticed that a bunch of dependencies were missing.
(cherry picked from master, commit e5f63c403b )
2009-07-15 11:12:44 -06:00
Alex Deucher
a0d4a12614
make sure ctx->Driver.Flush is valid before calling it
2009-07-15 11:31:24 -04:00
Alex Deucher
efe7ad233c
Use memcpy directly in the common code
...
This alleviates the need for an additional symbol.
2009-07-15 11:16:41 -04:00
José Fonseca
0474b5cb2a
python/retrace: Interpret surface_copy.
2009-07-15 16:02:39 +01:00
José Fonseca
c68f659be3
python/samples: Use PIPE_FORMAT_Z16_UNORM instead of PIPE_FORMAT_Z32_UNORM.
...
More common. True fix would be to use whatever the screen supports though.
2009-07-15 16:02:39 +01:00
Keith Whitwell
fdeb778990
mesa: recognize and eliminate repeated error messages
2009-07-15 13:31:51 +01:00
Keith Whitwell
59de430de7
mesa: split out errorstring switch from _mesa_error
...
Move a chunk of code out of _mesa_error()
2009-07-15 13:31:51 +01:00
Keith Whitwell
df5f7a6761
mesa: remove dead code in _mesa_error
...
Remove early and unused snprintf and where[] string.
2009-07-15 13:31:51 +01:00
Keith Whitwell
6c9d8a6f24
mesa: don't call getenv every time _mesa_error is called
...
Buggy apps can generate thousands of mesa_error calls. Don't need
to keep calling getenv to retreive the same MESA_DEBUG string each
time.
2009-07-15 13:31:50 +01:00
Dave Airlie
3a3b83e511
radeon: update span reading micro tile code
...
tested on r500 with zreaddraw with Z buffer in all 3 modes
2009-07-15 14:23:14 +10:00
Dave Airlie
bd4ed25222
r300: emit z depth pitch reloc in preparation for tiling
2009-07-15 14:23:14 +10:00
Dave Airlie
94d2a809f9
radeon: r300 fix span reading for macro tiled buffers.
...
this uses the correct formula for macro tiled buffers for readback
2009-07-15 14:23:13 +10:00
Dave Airlie
9b17f041d1
radeon: for tiling you really need to use GET/PUT VALUE not PTR.
...
since the surfaces aren't linear you can't just use GET_PTR
2009-07-15 14:23:13 +10:00
Xiang, Haihao
868aa16074
i965: the offset of any branch/jump instruction is in unit of 64bits on IGDNG
2009-07-15 10:48:13 +08:00
Alex Deucher
10b3e64bca
R6xx/r7xx: implement memcpy buffer swaps
...
This allows double buffered apps to run, but perfomance
will be awful until we implement something faster.
You must update to the latest kernel modules.
2009-07-14 21:19:32 -04:00
Dave Airlie
f6f0e117a4
intel/radeon: add common metaops code.
...
Move all the metaops to a dri_metaops file and port radeon/intel
to use the new common meta ops code.
2009-07-15 10:30:23 +10:00
Alex Deucher
9385e4e1ff
r6xx/r7xx: fix buffer aging bug
...
We were using sparse indexing for aos, while the common
code expected packed indexing.
2009-07-14 20:08:27 -04:00
Alex Deucher
9ae78dc0bc
R6xx/R7xx: no irqs yet.
2009-07-14 20:06:29 -04:00
Dave Airlie
681ede8836
radeon: fix unsigned vs signed comparison in stencil code.
...
This function takes a GLint not a GLuint, passing in -1
breaks internally.
2009-07-15 08:19:34 +10:00
Eric Anholt
99d07d0f91
intel: Fix ClearDepth to not be affected by DepthRange.
...
Fixes new piglit depthrange-clear.c test.
2009-07-14 15:14:52 -07:00
Eric Anholt
b677c40abb
intel: Set DepthRange in the metaops using RasterPos[2].
...
RasterPos[2] is already sent through the window transform, which includes
DepthRange handling. So make DepthRange for the metaops a noop.
Fixes a failure in oglconform depthrange.c
2009-07-14 15:14:52 -07:00
Eric Anholt
e5f63c403b
Fix state flag dependencies for fixed function fragment program updates.
...
I started looking into why _NEW_ARRAY punishes us, and while annotating
dependencies noticed that a bunch of dependencies were missing.
2009-07-14 15:14:52 -07:00
Eric Anholt
374110bc98
intel: Flag _NEW_ARRAY state when doing array object binding in clears.
...
This is just following bind_vertex_array()'s behavior.
2009-07-14 15:14:51 -07:00
Alex Deucher
a1ecbb2356
Disable shader dumps
2009-07-14 18:01:29 -04:00
Brian Paul
9aca6769df
mesa: fix texture border color code for glPopAttrib()
...
The texture object's border color used to be stored as GLchan but it's
been GLfloat for a while now.
2009-07-14 14:28:01 -06:00
Jakob Bornecrantz
26e58a42b0
progs/tests: Use compressed texture in mipmap_comp_tests
2009-07-14 17:11:07 +01:00
Jakob Bornecrantz
b0a17581e2
progs/tests: Tests more views in mipmap_comp_tests
2009-07-14 17:11:05 +01:00
Jakob Bornecrantz
a36b9987cd
progs/tests: Add yet another mipmap test
2009-07-14 17:11:01 +01:00
Brian Paul
6ec955efaf
mesa: regenerated enums.c file
2009-07-14 07:58:43 -06:00
Brian Paul
e786ecbfb5
mesa: regenerated enums.c file
2009-07-14 07:47:19 -06:00
José Fonseca
7325c1ebc8
scons: Monkey patch os.spawnve on Windows to become thread safe.
...
See also:
- http://bugs.python.org/issue6476
- http://scons.tigris.org/issues/show_bug.cgi?id=2449
2009-07-14 12:21:25 +01:00
José Fonseca
4ed1de8b84
mesa: Report the true face number when flushing.
2009-07-14 12:20:43 +01:00
Corbin Simpson
b727150b14
dri-st: Unbreak GL_EXT_blend_equation_separate.
...
Since it has a dispatch table entry (for BlendEquationSeparateEXT,)
can't omit it from this list. It'll still get disabled if the cap
(PIPE_CAP_BLEND_EQUATION_SEPARATE) isn't set.
Somebody that doesn't suck at GL (read: not me) should probably add
this into progs/samples/blendeq or similar so we can test it.
2009-07-14 01:16:25 -07:00
Patrice Mandin
54cf63278f
gallium: Define PIPE_CAP_BLEND_EQUATION_SEPARATE, remove extension from default extension list
2009-07-14 09:44:49 +02:00
Michel Dänzer
33f56b4612
radeon: Differentiate 16 bpp destination formats.
...
Fixes those formats in fbo_firecube.
Only tested with r300, radeon and r200 compile tested only.
2009-07-14 08:25:27 +02:00
Michel Dänzer
60e60bb302
radeon: Invert front face winding when rendering to FBO.
...
Fixes fgl_glxgears and progs/demos/fbotexture after pressing 'c'.
Tested with r300, radeon and r200 compile tested only.
2009-07-14 08:00:49 +02:00
Cooper Yuan
f4646f3247
R6xx/r7xx: Fix specular lighting issue
2009-07-14 10:39:07 +08:00
Nicolai Hähnle
59155f70e7
r300g: Small compile warning fixes.
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-07-13 16:26:29 -07:00
Nicolai Hähnle
b3f1d370a2
r300g, radeon: Whitespace fixes.
...
Signed-off-by: Corbin Simpson <MostAwesomeDude@gmail.com>
2009-07-13 16:26:29 -07:00
Corbin Simpson
ca28e591f2
r300g: Use align() instead of inline maths.
2009-07-13 16:26:29 -07:00
Maciej Cencora
9226e3d6a6
Merge branch 'shaders_cleanup'
2009-07-13 20:29:11 +02:00