Richard Li
41c5f113b5
r600 : disable draw_prim for now.
2009-09-24 10:15:19 -04:00
Andre Maasikas
2058dfaa47
r600: add support for CUBE textures, also TXP
...
seems to work here ...
2009-09-24 10:03:37 -04:00
Alex Deucher
639fb1472d
r600: fix typo in the last commit
...
128 gprs, 256 reg-based consts
2009-09-24 10:03:22 -04:00
Alex Deucher
28308c9260
r600: various cleanups
...
- max texture size is 8k, but mesa doesn't support
that at the moment.
- attempt to set shader limits to what the hw actually
supports
- clean up some old r300 cruft
- no need to explicitly disable irqs. This is fixed
in the drm now.
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2009-09-24 10:03:08 -04:00
Andre Maasikas
ed91d10347
r600: fix some issues with LIT instruction
...
- MUL_LIT is ALU.Trans instruction
- some Trans instructions can take 3 arguments
- don't clobber dst.x, use dst.z as temp, it'll get written correct
value in last insn
- respect source swizzles
2009-09-24 10:02:37 -04:00
Alex Deucher
48559c7605
r600: fix point sizes
...
registers takes radius
2009-09-24 10:02:22 -04:00
Alex Deucher
095db818c6
r600: fix polygon offset
2009-09-24 10:02:08 -04:00
Alex Deucher
ec14d59afa
radeon: don't build non-r600 span code on r600
2009-09-24 10:01:56 -04:00
Alex Deucher
dbec27be85
r600: minor span cleanups
2009-09-24 10:01:41 -04:00
Andre Maasikas
2cd2dc34ac
r600: support position_invariant programs
2009-09-24 10:00:58 -04:00
Alex Deucher
9437ac9bcc
r600: add span support for 1D tiles
...
1D tile span support for depth/stencil/color/textures
Z and stencil buffers are always tiled, so this fixes
sw access to Z and stencil buffers. color and textures
are currently linear, but this adds span support when we
implement 1D tiling.
This fixes the text in progs/demos/engine and progs/tests/z*
2009-09-24 09:59:45 -04:00
Alex Deucher
93a7ea6ba0
r600: fix warning
...
Noticed by rnoland on IRC.
2009-09-24 09:59:32 -04:00
Andre Maasikas
7f5a958c80
r600: fix texcoords from constants
...
with some minor updates from Richard.
2009-09-24 09:59:15 -04:00
Andre Maasikas
9edd1a441c
r600: enable caching of vertex programs
2009-09-24 09:59:00 -04:00
Alex Deucher
6552a103f9
r600: check if textures are actually enabled before submission
...
noticed by taiu on IRC.
2009-09-24 09:58:36 -04:00
Alex Deucher
65b01d449c
r600: fix ftp for dri1
...
We use t->bo for dri1 since r600 uses CS for dri1.
2009-09-24 09:58:17 -04:00
Dave Airlie
b1e417413f
r600: don't setup hardware state if TFP
...
if we have a BO here it means TFP and we should have set it
up already.
tested by b0le on #radeon
2009-09-24 09:57:45 -04:00
Alex Deucher
cbab3d7f2a
r600: fix dri2 clipping
2009-09-24 09:56:18 -04:00
José Fonseca
86962d6f6e
gdi: Update for WGL state tracker interface changes.
2009-09-24 13:12:51 +01:00
José Fonseca
4e5ed05b02
wgl: DWM integration.
2009-09-24 13:12:51 +01:00
José Fonseca
9ea277ba7a
scons: Don't require -liberty on MinGW.
...
Not always present.
2009-09-24 13:12:50 +01:00
José Fonseca
622bdecabd
mesa: Fix missing finite symbol error on Windows.
...
Caused by some weird logic regarding the __WIN32__ define which made
the finite definition dependent on the header include order.
2009-09-24 13:12:50 +01:00
Alex Deucher
1bf0651d9b
r600: fix up ordering of functions in draw prims path
...
Shaders and IB need to be updated and allocated before
calling validatebuffers.
2009-09-23 19:42:07 -04:00
Maciej Cencora
84c7afd9e0
r300: fallback to software rendering if we are out of free texcoords
...
Fixes #22741
2009-09-23 23:22:33 +02:00
Alex Deucher
20e7738293
r600: fix r700PredictRenderSize for draw prims path
2009-09-23 16:54:12 -04:00
Richard Li
8a2b0f6415
r600 : add hw index buffer draw support.
2009-09-23 16:16:11 -04:00
Brian Paul
fa0816b17c
progs/perf: added glReadPixels benchmark
2009-09-23 14:05:05 -06:00
Brian Paul
489f8bc86f
progs/perf: also request a stencil buffer
2009-09-23 14:05:05 -06:00
Brian Paul
2acd5de226
swrast: add lod bias when texture sampling
...
Mostly fixes progs/demos/lodbias when MESA_TEX_PROG=1. But the LOD still
seems off by -1 or so.
May be an issue with the params passed to _swrast_compute_lambda()
2009-09-23 13:36:44 -06:00
Brian Paul
890f37d4d9
mesa: don't bias LOD in shader interpreter; do it in swrast
2009-09-23 13:36:44 -06:00
Brian Paul
ad935c3f47
swrast: fix typo in partial derivatives parameter passing
2009-09-23 13:36:43 -06:00
Adam Jackson
8abe77a75a
Finish removing glcore
2009-09-23 15:22:19 -04:00
Alex Deucher
53051b8cb5
r600: fix copy/paste typo
2009-09-23 15:02:19 -04:00
Alex Deucher
ec205bbd57
r600: fix some warnings
2009-09-23 14:58:46 -04:00
Andre Maasikas
2d2f49c919
r600: add support for CUBE textures, also TXP
...
seems to work here ...
2009-09-23 14:58:46 -04:00
Michal Krol
a0549f6634
progs/perf: Actually bind the newly created vbo.
2009-09-23 20:24:35 +02:00
Keith Whitwell
be66ff51ec
st/mesa: trim calculated userbuffer size
...
In get_array_bounds we were previously defining a user buffer sized as
(nr_vertices * stride). The trouble is that if the vertex data
occupies less than stride bytes, the extra tailing (stride - size)
bytes may extend outside the memory actually allocated by the app and
caused a segfault.
To fix this, define a the buffer bounds to be:
ptr .. ptr + (nr-1)*stride + element_size
2009-09-23 18:55:46 +01:00
Brian Paul
35af3f94a3
llvmpipe: move tile cache datatypes into .c file since they're private
2009-09-23 11:53:12 -06:00
Brian Paul
b4a40d1052
softpipe: replace macros with inline functions
...
And update comments.
2009-09-23 11:51:52 -06:00
Brian Paul
e2329f2795
softpipe: white-space/formatting fixes and updated comments
2009-09-23 11:35:33 -06:00
Brian Paul
5244ce786a
llvmpipe: added max texture/surface size sanity check
...
Carried over from softpipe driver.
2009-09-23 11:05:00 -06:00
Brian Paul
b26f1df920
llvmpipe: increase MAX_WIDTH/HEIGHT to match max texture size
2009-09-23 11:04:07 -06:00
Brian Paul
de25f82067
Merge branch 'mesa_7_6_branch'
...
Conflicts:
src/gallium/drivers/softpipe/sp_tile_cache.c
2009-09-23 11:00:04 -06:00
Brian Paul
e41707beca
softpipe: added max texture/surface size sanity check
2009-09-23 10:50:38 -06:00
Brian Paul
84b956c29b
softpipe: increase MAX_WIDTH/HEIGTH 4096 to match max texture size
2009-09-23 10:46:27 -06:00
Keith Whitwell
890679d432
Merge branch 'softpipe-opt'
...
Conflicts:
progs/demos/cubemap.c
src/gallium/drivers/softpipe/sp_tex_sample.c
src/gallium/drivers/softpipe/sp_texture.c
2009-09-23 17:37:28 +01:00
Keith Whitwell
a1fa770c01
gallium/include: update some comments
2009-09-23 17:04:48 +01:00
Zack Rusin
1ddb217d8e
st/xorg: fix a typo
...
it'd be too easy, eh
2009-09-23 12:05:13 -04:00
Zack Rusin
5a7f708530
st/xorg: keep the user buffer contents around
...
Michel noticed that they were getting out of scope
2009-09-23 12:03:35 -04:00
Brian Paul
aae77319c0
progs/perf: set TexSubImage4=FALSE
2009-09-23 08:06:37 -06:00