Brian Paul
b7c38734c9
mesa: enable GL_ARB_draw_instanced for software drivers
2010-12-10 09:29:41 -07:00
Brian Paul
a63486ac68
tnl: implement instanced drawing
2010-12-10 09:29:13 -07:00
Brian Paul
6a0d3b7696
mesa: implement system values in program interpreter
2010-12-10 09:29:00 -07:00
Brian Paul
dcb48e7eb4
llvmpipe: enable instanced drawing cap
2010-12-08 19:06:22 -07:00
Brian Paul
cf2184f057
softpipe: enable instanced drawing cap
2010-12-08 19:04:16 -07:00
Brian Paul
1d6f3543a0
gallivm/llvmpipe: implement system values and instanceID
2010-12-08 19:04:11 -07:00
Brian Paul
2b5e1e5287
st/mesa: translate shader system inputs
2010-12-08 19:01:15 -07:00
Brian Paul
2d62fb6c3f
draw: setup instance ID for SSE generator
2010-12-08 19:00:44 -07:00
Brian Paul
0be042cb4d
draw: setup instance ID for VS interpreter
2010-12-08 19:00:32 -07:00
Brian Paul
691048a22a
mesa: ir_to_mesa support for system values
2010-12-08 18:25:58 -07:00
Brian Paul
7ce186358e
glsl: add support for system values and GL_ARB_draw_instanced
2010-12-08 18:25:38 -07:00
Brian Paul
379332f629
mesa: program printing for PROGRAM_SYSTEM_VALUE
2010-12-08 18:24:48 -07:00
Brian Paul
c6d74bcbfc
mesa: add PROGRAM_SYSTEM_VALUE and related tokens
...
System values are shader inputs which don't necessarily change from
vertex to vertex or fragment to fragment. gl_InstanceID and
gl_FrontFacing are examples.
2010-12-08 18:21:20 -07:00
Brian Paul
975418a654
tgsi/ppc: add case for system values and assert
2010-12-08 18:20:44 -07:00
Brian Paul
e8154eeae5
tgsi/sse: add support for system values
2010-12-08 18:20:05 -07:00
Brian Paul
b550d8d76b
tgsi: new tgsi_shader_info fields for system values
2010-12-08 18:19:47 -07:00
Brian Paul
859f45a921
tgsi: add support for system values to TGSI interpreter
2010-12-08 18:19:14 -07:00
Brian Paul
9cd277684d
st/mesa: GL_ARB_draw_instanced depends on PIPE_CAP_INSTANCED_DRAWING
2010-12-05 13:34:02 -07:00
Brian Paul
d87bc015dc
gallium: added PIPE_CAP_INSTANCED_DRAWING
2010-12-05 13:32:59 -07:00
Brian Paul
903ead0b26
glsl: start restoring some geometry shader code
2010-11-23 17:23:42 -07:00
Brian Paul
6162773ea4
glsl: better handling of linker failures
...
Upon link error, exit translation loop, free program instructions.
Check for null pointers in calling code.
2010-11-23 17:18:48 -07:00
Brian Paul
2900e56f9d
mesa: use gl_shader_type enum
2010-11-23 17:00:08 -07:00
Brian Paul
c628fd743e
mesa: replace #defines with new gl_shader_type enum
2010-11-23 15:52:43 -07:00
Brian Paul
512f840702
mesa: _mesa_valid_register_index() to validate register indexes
2010-11-23 15:52:43 -07:00
Brian Paul
b8dacaf174
mesa: rename, make _mesa_register_file_name() non-static
...
Plus remove unused parameter.
2010-11-23 15:52:42 -07:00
Brian Paul
caf974c525
glsl: use gl_register_file in a few places
2010-11-23 15:52:42 -07:00
Brian Paul
50fd99d172
glsl: fix off by one in register index assertion
2010-11-23 15:52:42 -07:00
Alex Deucher
ed8b5fb24e
gallium/egl: fix r300 vs r600 loading
...
Should fix:
https://bugs.freedesktop.org/show_bug.cgi?id=31841
2010-11-23 15:18:31 -05:00
Eric Anholt
df24450bac
i965: Use the new embedded compare in SEL on gen6 for VS MIN and MAX opcodes.
...
Cuts the extra CMP instruction that used to precede SEL.
2010-11-23 09:23:30 -08:00
Eric Anholt
8a7cf99457
i965: Don't upload line smooth params unless we're line smoothing.
2010-11-23 09:23:30 -08:00
Eric Anholt
008fd3779b
i965: Don't upload line stipple pattern unless we're stippling.
2010-11-23 09:23:30 -08:00
Eric Anholt
e29e3c32d9
i965: Don't upload polygon stipple unless required.
2010-11-23 09:23:30 -08:00
Eric Anholt
7720bfffa3
i965: Move gen4 blend constant color to the gen4 blending file.
2010-11-23 09:23:29 -08:00
Tilman Sauerbeck
3688301c59
r600g: Removed duplicated call to tgsi_split_literal_constant().
...
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-23 09:20:54 +01:00
Tom Stellard
4265c2f819
r300/compiler: Don't allow presubtract sources to be remapped twice
...
https://bugs.freedesktop.org/show_bug.cgi?id=31193
NOTE: This is a candidate for the 7.9 branch.
2010-11-23 00:02:03 -08:00
Mathias Fröhlich
07e0424a17
r600g: Only compare active vertex elements
...
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-23 08:39:43 +01:00
Vinson Lee
f44d96e1af
mesa: Clean up header file inclusion in syncobj.h.
2010-11-22 21:51:49 -08:00
Vinson Lee
37195b7f70
llvmpipe: Remove unnecessary headers.
2010-11-22 21:39:14 -08:00
Xiang, Haihao
93102b4cd8
mesa: fix regression from b4bb668020
...
Pending commands to the previous context aren't flushed since commit b4bb668
Reported-by: Oleksiy Krivoshey <oleksiyk@gmail.com>
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
2010-11-23 08:59:44 +08:00
Alex Deucher
cb7a36b651
r600c: fix VC flush on cedar and palm
2010-11-22 19:27:58 -05:00
Alex Deucher
0e4c5f63b9
r600g: add support for ontario APUs
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-11-22 18:01:26 -05:00
Alex Deucher
072f2cbf29
r600c: add Ontario Fusion APU support
...
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-11-22 18:01:25 -05:00
Mathias Fröhlich
8d1ad3b21c
r300g: Avoid returning values in a static array, fixing a potential race
...
(Marek: added the initializion of "vec" in the default statement)
NOTE: This is a candidate for the 7.9 branch.
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-11-22 23:56:41 +01:00
Alex Deucher
271b7b5914
r600g: fix some winsys functions to deal properly with evergreen
...
Are these functions actually used anywhere?
2010-11-22 17:39:54 -05:00
Alex Deucher
bf9c80976f
r600g: fix additional EVENT_WRITE packet
...
Add explicit EVENT_TYPE field
2010-11-22 17:39:16 -05:00
Marek Olšák
e7c74a7dfa
st/mesa: set MaxUniformComponents
...
Signed-off-by: Brian Paul <brianp@vmware.com>
2010-11-22 21:44:35 +01:00
Brian Paul
6a0255122a
swrast: init alpha value to 1.0 in opt_sample_rgb_2d()
2010-11-22 09:04:13 -07:00
Marek Olšák
9aa089eac0
gallium: add PIPE_SHADER_CAP_SUBROUTINES
...
This fixes piglit/glsl-vs-main-return and glsl-fs-main-return for the drivers
which don't support RET (i915g, r300g, r600g, svga).
ir_to_mesa does not currently generate subroutines, but it's a matter of time
till it's added. It would then break all the drivers which don't implement
them, so this CAP makes sense.
Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-11-22 12:41:22 +01:00
Keith Whitwell
b2ddb93ff3
Merge branch 'lp-offset-twoside'
2010-11-22 10:36:01 +00:00
Dave Airlie
d5aadf0d80
r600g: pick correct color swap for A8 fbos.
...
This fixes fdo bug 31810.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-11-22 16:05:44 +10:00