José Fonseca
459ea0095c
llvmpipe: Make the code portable for MinGW.
2009-09-16 11:35:23 +01:00
Dave Airlie
858a2a2ac7
radeon: cleanup compile defines mess.
...
I inherited this and really it stayed around far too long,
make it nice and simple.
2009-09-16 13:48:45 +10:00
Dave Airlie
a6a21eb00d
radeon: oops remove debugging left on in previous patch
2009-09-16 13:25:02 +10:00
Dave Airlie
2fdb0e5d3b
radeon: use txformat to decide to emit rect tex state.
...
This is more logical, and fixes a TFP issue.
2009-09-16 13:13:43 +10:00
Brian Paul
2914f2b7fd
mesa: move generate mipmap calls
...
Per the suggestion in the Intel driver, move the calls to
ctx->Driver.GenerateMipmap() into core Mesa so that drivers don't
have to worry about it.
2009-09-15 18:17:43 -06:00
Brian Paul
ef6ee07fc7
mesa: minor clean-up
2009-09-15 18:17:43 -06:00
Brian Paul
a31ac84d74
mesa: remove last of gotos
2009-09-15 18:17:43 -06:00
Brian Paul
c352566933
mesa: more goto removal
2009-09-15 18:17:43 -06:00
Brian Paul
ecf6f37fc2
mesa: remove some gotos
...
This will make some subsequent changes easier...
2009-09-15 18:17:42 -06:00
Brian Paul
c26c2006df
mesa: clean-up fbo debug code
2009-09-15 18:17:42 -06:00
Brian Paul
0b0fc4072f
progs/demos: use non-default texobj in cubemap.c
2009-09-15 18:17:42 -06:00
Brian Paul
7f86da6c60
progs/demos: create a texture object in lodbias.c
...
Before, we were using the default texture object (name=0). This caused
the intel_generate_mipmap() path to fail since passing texture=0 to
glFramebufferTexture2DEXT() causes us to _unbind_ the texture if present.
2009-09-15 18:17:42 -06:00
Zack Rusin
a016043386
st/xorg: fixing copies and composite shaders
...
copies were busted when src == dst. also the composite shaders
were incorrectly using the fragments instead of the texture coordinate.
2009-09-15 19:50:36 -04:00
Zack Rusin
8adcad0c70
st/xorg: lots of fixes
...
fixes blending binding and copy coordinates
2009-09-15 19:50:34 -04:00
Brian Paul
f9574e05c2
docs: GL_ARB_provoking_vertex
2009-09-15 16:01:51 -06:00
Brian Paul
2e7a1dd8ca
mesa: added GL_ARB_provoking_vertex (same as EXT version)
2009-09-15 16:01:51 -06:00
Alex Deucher
87d40a95bf
radeon: don't build non-r600 span code on r600
2009-09-15 17:13:08 -04:00
Alex Deucher
49fc41eeed
r600: minor span cleanups
2009-09-15 17:13:08 -04:00
Ian Romanick
ac4e23d784
Merge branch 'mesa_7_6_branch'
2009-09-15 13:14:38 -07:00
Ian Romanick
6c6fe0a704
Merge commit 'origin/mesa_7_5_branch' into mesa_7_6_branch
2009-09-15 13:13:35 -07:00
Ian Romanick
1f309c40b8
GLX: Complain when buggy applications call GLX 1.3 functions.
2009-09-15 13:12:22 -07:00
Zack Rusin
f1ce6b09cd
st/xorg: Brian suggested that those could be mad's
...
optimizes the common paths
2009-09-15 15:21:42 -04:00
Brian Paul
b0c52e491d
mesa: remove incorrect texture state check
...
Fixes incorrectly textured bitmap text in engine demo.
It's incorrect to test the texture enable bits here since they may have
been changed by disabling the shader above. Optimization is still possible
but will have to be reexamined.
2009-09-15 12:36:55 -06:00
Maarten Maathuis
26860a6e2f
nv50: avoid excessive FIRE_RING
...
- And reduce RING_SPACE to 2, instead of 3.
2009-09-15 18:59:53 +02:00
Maarten Maathuis
db37279e0b
nv50: use flush_notify to reduce number of relocs
2009-09-15 18:59:53 +02:00
Michel Dänzer
0469465c31
st/xorg: Only unreference texture on pixmap destruction, don't destroy it.
...
Fixes memory corruption if e.g. the driver still has references to the texture.
2009-09-15 18:31:07 +02:00
Michel Dänzer
45cf2696ca
st/xorg: Explicitly check whether the driver supports the pixmap formats.
...
Rather than arbitrarily checking for pixmap depth < 15.
2009-09-15 18:30:58 +02:00
Michel Dänzer
be94a1d3bc
st/xorg: Use A8 format for depth 8 pixmaps.
...
The inconsistent bpp caused issues with UploadTo/DownloadFromScreen.
2009-09-15 18:23:00 +02:00
Brian Paul
be0cdd77ea
st/mesa: disable accidentally committed _mesa_print_program() call
2009-09-15 09:52:27 -06:00
Brian Paul
41bbc83951
Merge branch 'mesa_7_6_branch'
2009-09-15 09:47:35 -06:00
Brian Paul
5d526ed21a
Merge branch 'mesa_7_5_branch' into mesa_7_6_branch
2009-09-15 09:45:18 -06:00
Brian Paul
c0cf9dc05e
ARB prog parser: regenerated file
2009-09-15 09:40:26 -06:00
Brian Paul
2aad3a855b
ARB prog parser: more detailed error message for out of bounds ADDR offsets
2009-09-15 09:40:25 -06:00
Brian Paul
2b992dc327
gl: restore some PFNGL typedefs
...
Commit d33c315d9e removed a few too many
typedefs. We need the typedefs in glext.h which are protected by #ifdef
GL_VERSION_1_2 but we can exclude the ones protected by
GL_VERSION_1_2_DEPRECATED.
2009-09-15 09:36:31 -06:00
Andre Maasikas
5ef40337ab
r600: support position_invariant programs
2009-09-15 11:27:51 -04:00
José Fonseca
a18301790c
gallium: Use the enum for pipe_transfer::usage.
2009-09-15 16:02:55 +01:00
José Fonseca
cb5f1bce23
gallium: pipe_transfer_destroy helper inline.
2009-09-15 16:02:54 +01:00
Christoph Bumiller
d3a9cf54c0
nv50: fix stupid thinko in emit_set
...
When swapping sources 0 and 1, EQ of course does *not*
become NE, etc.
Introduced in 2b963f5c72 .
2009-09-15 15:37:10 +02:00
Michal Krol
7aee53002c
gallium: Fix pointer type casts.
2009-09-15 12:00:27 +01:00
Christoph Bumiller
750c6cae3d
nv50: let programs use the whole param buffer
...
Allocation is unnecessary since all uniforms are
uploaded on every constant buffer change anyway.
2009-09-15 12:13:23 +02:00
Christoph Bumiller
01670ca807
nv50: add preliminary support for point sprites
2009-09-15 12:13:23 +02:00
Christoph Bumiller
06dac41cc5
nv50: add support for point size per vertex
2009-09-15 12:13:23 +02:00
Christoph Bumiller
4d7b4781c8
nv50: add support for light-twoside
2009-09-15 12:13:23 +02:00
Christoph Bumiller
6516594c8e
nv50: proper linkage between VP and FP
...
This moves construction of the mapping between VP outputs
and FP inputs into validation.
The map also contains slots for special outputs like clip
distance and point size, so we need to at least merge the
VP related and FP related parts on validation if we want
to support those.
Now we match every single FP input component with results
from the VP and leave those not read out of the map, or
replace those not written by 0 (xyz) or 1 (w).
The bitmap indicating linear interpolants is also filled,
and flat FP inputs are mapped in only after non-flat ones,
as is required.
Furthermore, we can save some space by only fetching VP
attrs we actually use, and avoid wasting any output regs
because of TGSI using less than 4 components.
2009-09-15 12:13:23 +02:00
Christoph Bumiller
38849c529e
nv50: move allocation of pc regs
...
Make use of tgsi_shader_info to determine how many nv50_regs we
need to allocate, whether program uses KIL, or writes DEPR.
2009-09-15 12:13:23 +02:00
Christoph Bumiller
e0951797cb
nv50: nicer initialization of nv50_regs
2009-09-15 12:13:23 +02:00
Christoph Bumiller
849885c7a6
nv50: handle CEIL and TRUNC opcodes
2009-09-15 12:13:23 +02:00
Christoph Bumiller
2b963f5c72
nv50: handle SEQ, SGT, SLE, SNE opcodes
2009-09-15 12:13:23 +02:00
Christoph Bumiller
e774b3c0f2
nv50: SIN and COS use src0.w for dst.w
2009-09-15 12:13:22 +02:00
Christoph Bumiller
81de711fc8
nv50: use broadcast TEMP reg in tx_insn
...
Makes some opcode cases nicer and might reduce the total
nr of TEMPs required, or save some MOVs.
2009-09-15 12:13:22 +02:00