Eric Anholt
cfcc2ef587
i965: Set render_cache_read_write surface state bit on gen6 constant surfs.
...
This is said to be required in the spec, even when you aren't doing writes.
2010-12-09 11:11:04 -08:00
Eric Anholt
30f25a1019
i965: Set up the correct texture border color state struct for Ironlake.
...
This doesn't actually fix border color on Ironlake, but it appears to
be a requirement, and gen6 needs it too.
2010-12-09 10:51:00 -08:00
Eric Anholt
14a9153a32
i965: Clean up VS constant buffer location setup.
2010-12-09 10:51:00 -08:00
Eric Anholt
8fab1c0e2e
i965: Fix VS constants regression pre-gen6.
...
Last minute change for gen6 with 0 used params dropped the multiply.
2010-12-09 10:50:59 -08:00
José Fonseca
cdd4f04f80
llvmpipe: Plug fence leaks.
2010-12-09 16:48:26 +00:00
Shuang He
9946f15d30
mesa: allow GLfixed arrays for OpenGL ES 2.0
...
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-12-09 08:23:54 -07:00
Chia-I Wu
0c0eda393a
mesa: Fix glTexCoordPointer with type GL_FIXED.
...
GL_FIXED is also a legal type for glTexCoordPointer.
2010-12-09 19:37:56 +08:00
Chia-I Wu
2d270ac090
mesa: Fix GL_FIXED arrays.
...
It is broken since 433e5e6def .
2010-12-09 19:25:05 +08:00
Eric Anholt
05e534e6c4
i965: Drop push-mode reladdr constant loading and always use constant_map.
...
This eases the gen6 implementation, which can only handle up to 32
registers of constants, while likely not penalizing real apps using
reladdr since all of those I've seen also end up hitting the pull
constant buffer. On gen6, the constant map means that simple NV VPs
fit under the 32-reg limit and now succeed. Fixes around 10 testcases.
2010-12-08 22:26:18 -08:00
Alex Deucher
fd543e1f95
radeon: bump mip tree levels to 15
...
I forgot to bump this when I bumped the tex levels.
2010-12-09 00:16:02 -05:00
Brian Paul
09a5e028a6
mesa: simplify target checking for TexImage functions
2010-12-08 21:38:35 -07:00
Brian Paul
7404fa3f07
mesa: revamp error checking for compressed texture images
...
Simplify some code, remove unneeded checks, etc.
2010-12-08 21:38:35 -07:00
Chad Versace
f0f2ec4d8a
glsl: In ast_to_hir, check sampler array indexing
...
Raise error if a sampler array is indexed with a non-constant expression.
From section 4.1.7 of the GLSL 1.30 spec:
"Samplers aggregated into arrays within a shader (using square
brackets [ ]) can only be indexed with integral constant
expressions [...]."
2010-12-08 18:53:53 -08:00
Christian König
1e3f5e9520
[g3dvl] split mc code into state and buffer
2010-12-08 23:37:57 +01:00
Christian König
3b2ef2d007
[g3dvl] move buffer mapping/unmapping out of flush
2010-12-08 22:35:30 +01:00
Christian König
877edb6785
[g3dvl] replace IF THEN ELSE with CMP statement
2010-12-08 21:28:38 +01:00
Christian König
1482b9a7f3
[g3dvl] remove shadow buffering of vertex buffers
2010-12-08 20:48:34 +01:00
Eric Anholt
d547ab150a
i965: Drop KIL_NV from the ff/ARB_fp path since it was only used for GLSL.
2010-12-08 11:14:52 -08:00
Eric Anholt
dba6fde08c
i965: Use the new pixel mask location for gen6 ARB_fp KIL instructions.
...
Fixes:
fp-kil
fp-generic/kil-swizzle.
2010-12-08 11:14:35 -08:00
Eric Anholt
39eaacff14
i965: Set the render target index in gen6 fixed-function/ARB_fp path.
...
Fixes:
fbo-drawbuffers2-blend
fbo-drawbuffers2-colormask
2010-12-08 10:51:04 -08:00
Eric Anholt
4b4dc778b6
i965: Set up the per-render-target blend state on gen6.
...
This will let us get EXT_draw_buffers2 blending and colormasking working.
2010-12-08 10:50:57 -08:00
Christian König
8df88ca10f
[g3dvl] remove mb type handler structure
2010-12-08 19:41:01 +01:00
Christian König
050e7035f2
[g3dvl] move macro block type handling into shaders part 3
2010-12-08 19:18:55 +01:00
Eric Anholt
0d3b8a5cc2
i965: Set up the color masking for the first drawbuffer on gen6.
...
Fixes glean/maskedClear
2010-12-08 09:53:16 -08:00
Christian König
5790ca5289
[g3dvl] moving macroblock type handling into shaders part 2
2010-12-08 18:42:48 +01:00
Christian König
081b01fd60
[g3dvl] start moving macroblock type handling into shaders
2010-12-08 18:26:58 +01:00
Christian König
b680476b52
[g3dvl] allways use all motion vectors
...
reprogramming the vertex buffers takes more time than pumping
all motion vectors through the vertex shader
2010-12-08 16:11:29 +01:00
Chia-I Wu
d2028ba339
mesa: Do not advertise GL_OES_texture_3D.
...
GL_OES_texture_3D has a GLSL counterpart. Since it is not implemented,
GL_OES_texture_3D should not be advertised.
2010-12-08 22:35:40 +08:00
Chia-I Wu
98ee6739d9
vbo: Fix GLES2 glVertexAttrib.
...
Attribute 0 has no special meaning in GLES2. Add VertexAttrib4f_nopos
for that purpose and make _es_VertexAttrib* call the new function.
Rename _vbo_* to _es_* to avoid confusion. These functions are only
used by GLES, and now some of them (_es_VertexAttrib*) even behave
differently than vbo_VertexAttrib*.
2010-12-08 22:19:19 +08:00
Chia-I Wu
9f0d7dd259
vbo: Drop second ATTR macro.
...
There is no need to have a special version of ATTR for
!FEATURE_beginend, since 81ccb3e2ce .
2010-12-08 22:18:37 +08:00
Christian König
d8d8939dd5
[g3dvl] split empty block handling
...
Empty block handling is split between vertex shader (x-axis)
and fragment shader (y-axis).
2010-12-08 14:50:28 +01:00
Brian Paul
7da704ee72
configure: use llvm-config --cppflags instead of --cflags
2010-12-08 06:45:00 -07:00
Brian Paul
c64447f47d
mesa: make _mesa_test_proxy_teximage() easier to read
2010-12-07 21:37:20 -07:00
Brian Paul
4ff70b7a8f
mesa: consolidate glCompressedTexImage1/2/3D() functions
2010-12-07 21:37:20 -07:00
Brian Paul
1c23b860ce
mesa: consolidate glCopyTexSubImage1/2/3D() functions
2010-12-07 21:37:20 -07:00
Brian Paul
11f386fb50
mesa: consolidate glCopyTexImage1/2D() code
2010-12-07 21:37:19 -07:00
Brian Paul
45124e043d
mesa: consolidate the glTexSubImage1/2/3D() functions
2010-12-07 21:37:19 -07:00
Brian Paul
35f620d55c
mesa: simplify proxy texture code in texture_error_check()
2010-12-07 21:37:19 -07:00
Marek Olšák
c4f9e55d61
r300/compiler: remove at least unused immediates if externals cannot be removed
2010-12-08 04:39:51 +01:00
Marek Olšák
2ff9d4474b
r300/compiler: make lowering passes possibly use up to two less temps
...
CMP may now use two less temps, other non-native instructions may end up
using one less temp, except for SIN/COS/SCS, which I am leaving unchanged
for now.
This may reduce register pressure inside loops, because the register
allocator doesn't do a very good job there.
2010-12-08 04:39:51 +01:00
Marek Olšák
93f2df0760
r300/compiler: handle DPH and XPD in rc_compute_sources_for_writemask
...
This bug can only be triggered if you put deadcode before native rewrite.
2010-12-08 04:39:50 +01:00
Marek Olšák
95080fb50f
r300/compiler: do not print pair/tex/presub program stats for vertex shaders
2010-12-08 04:39:50 +01:00
Marek Olšák
8fac29d49e
r300/compiler: cleanup rc_run_compiler
2010-12-08 04:39:50 +01:00
Marek Olšák
2592a8f506
r300/compiler: add a function to query program stats (alu, tex, temps..)
2010-12-08 04:39:50 +01:00
Marek Olšák
431b4c0c84
r300/compiler: don't terminate regalloc if we surpass max temps limit
...
The same check is already in a later pass (translate_vertex_program).
2010-12-08 04:39:50 +01:00
Eric Anholt
2f07a744f1
i965: Don't try to store gen6 (float) blend constant color in bytes.
...
Fixes glean/blendFunc
2010-12-07 19:33:47 -08:00
Ian Romanick
002cd2c8d4
linker: Fix regressions caused by previous commit
...
That's what I get for not running piglit before pushing.
Don't try to patch types of unsized arrays when linking fails.
Don't try to patch types of unsized arrays that are shared between
shader stages.
2010-12-07 19:00:44 -08:00
Ian Romanick
6f53921c4b
linker: Ensure that unsized arrays have a size after linking
...
Fixes piglit test case glsl-vec-array (bugzilla #31908 ).
NOTE: This bug does not affect 7.9, but I think this patch is a
candiate for the 7.9 branch anyway.
2010-12-07 18:32:16 -08:00
Eric Anholt
b2167a6c01
i965: Fix flipped value of the not-embedded-in-if on gen6.
...
Fixes:
glean/glsl1-! (not) operator (1, fail)
glean/glsl1-! (not) operator (1, pass)
2010-12-07 17:46:47 -08:00
Christian König
0b749d6dcb
[g3dvl] split idct code into state and buffers
2010-12-08 02:12:24 +01:00