Ian Romanick
0b5af41c6f
ARB prog parser: Delete the old parser
2009-08-18 12:07:47 -07:00
Ian Romanick
ea8db5c332
ARB prog: Revert some changes to debug output
2009-08-18 12:07:47 -07:00
Ian Romanick
565a2a8f38
ARB prog parser: Add support for RGBA components to SWZ instruction in fp
2009-07-30 10:51:43 -07:00
Ian Romanick
17534ab88c
ARB prog parser: Prevent NULL ptr deref for KIL instruction
...
The KIL instruction doesn't have a destination register, so
dereferencing dst in asm_instruction_ctor would cause a segfault.
2009-07-30 09:41:35 -07:00
Ian Romanick
600710907c
ARP prog parser: Implement the spec, not what makes sense
2009-07-29 21:07:41 -07:00
Ian Romanick
48183ca8b6
ARB prog parser: Get program limits from the context
...
Some debug code from the older stand-alone version of the assembler
was hanging around and needed to go.
2009-07-29 20:51:38 -07:00
Ian Romanick
cbe4133109
ARB prog lexer: attenuation is not just for vp
2009-07-29 20:42:28 -07:00
Ian Romanick
333bb4f291
ARB prog parser: Finish implementing fp state.depth.range
2009-07-29 20:41:48 -07:00
Ian Romanick
e511633985
ARB prog: Fix the order of swizzle application
...
The swizzle used to generate the "original" value from the value
stored in the parameter array happens before the swizzle specified in
the instruction. This fixes problems seen in progs/vp/vp-tris with arl-*.txt.
2009-07-29 20:07:59 -07:00
Ian Romanick
8a430dd4da
Indentation fixes.
2009-07-29 09:50:06 -07:00
Ian Romanick
4c5879ff31
ARB prog parser: Set NumAttributes based on the number of attribs read
2009-07-29 09:47:14 -07:00
Ian Romanick
648dac4251
ARB prog parser: Set component negation mask for SWZ instruction
2009-07-28 21:57:28 -07:00
Ian Romanick
86b33b5649
ARB prog parser: Set correct register file for OUTPUT variables
2009-07-28 21:56:42 -07:00
Ian Romanick
aafd576259
ARB prog parser: Add support for GL_MESA_texture_array
...
This isn't really tested yet as no drivers actually support this extension.
2009-07-27 17:22:21 -07:00
Ian Romanick
41d5696628
ARB prog parser: More robust error message for bad OPTION string
2009-07-27 17:10:01 -07:00
Ian Romanick
1edd13bf23
ARB prog parser: Add support for GL_ARB_fragment_program_shadow
...
Passes the piglit asmparsertest shadow-0[123].txt tests and
progs/demos/shadowtex.
2009-07-27 16:24:49 -07:00
Ian Romanick
88018e2e07
ARB prog parser: Fix handling of RECT
...
Require that GL_{ARB,EXT,NV}_texture_rectangle be supported before
allowing use of RECT texture target.
2009-07-27 15:47:52 -07:00
Ian Romanick
4821099429
ARB prog: Fix parameters to _mesa_calloc
...
So totally awesome that _mesa_calloc has a different parameter
signature than calloc. Why do these libc wrappers still exist?!?
2009-07-27 15:46:07 -07:00
Ian Romanick
054ab5a50a
ARB prog parser: Correct handling of some extensions that interact w/ARB_vp
2009-07-27 14:18:40 -07:00
Ian Romanick
be32fb779b
ARB prog: Update generated files missed on previous two commits
...
The changes are, as it turns out, purely cosmetic.
2009-07-27 12:48:44 -07:00
Ian Romanick
6d3ccaf366
ARB prog: Delete comment about possibly needing to free a buffer
...
Valgrind doesn't complain about a leak here, so delete the comment
about possibly needing to free the state returned by yy_scan_bytes.
2009-07-27 12:38:52 -07:00
Ian Romanick
94b4556704
ARB prog: Clean up several memory leaks
...
As far as I am able to determine via code inspection and using
Valgrind, that should be all of the leaks in the parser.
2009-07-27 12:21:26 -07:00
Ian Romanick
946ea82bff
Add destructor for symbol_table
2009-07-27 12:19:14 -07:00
Ian Romanick
0044d3ba94
Add destructor for hash_table
2009-07-27 12:17:06 -07:00
Ian Romanick
258f640eda
ARB prog: Layout parameters from parameter type, not src type
...
Use the type stored in the Parameters array to determine the layout
instead of the type in the instruction register field. Also, update
the instruction register field based on the parameter type.
This makes Google Earth work exactly like with Mesa master.
2009-07-24 18:14:47 -07:00
Ian Romanick
a7400e7364
ARB prog: _mesa_print_program output should go to same place as _mesa_printf
2009-07-24 18:03:02 -07:00
Ian Romanick
f3cba9d66a
ARB prog parse: Fix cut-and-paste error for constant vectors
2009-07-24 18:01:59 -07:00
Ian Romanick
6f8214cae6
ARB prog: get frag prog texture info from the right place
...
This gets basic texturing working. w00t!
2009-07-24 17:33:30 -07:00
Ian Romanick
ef80c2012d
parser: Clean up a bunch of silly compiler warnings
2009-07-22 17:13:08 -07:00
Ian Romanick
0db5ef0741
parser: Track a few more frag prog related values
2009-07-22 16:21:54 -07:00
Ian Romanick
28b13038d8
parser: Ensure that param_binding_type is set correctly
2009-07-22 16:03:32 -07:00
Ian Romanick
5f090bb074
GIT ignore program_parse.output
2009-07-22 15:28:31 -07:00
Ian Romanick
c2ee82d693
parser: Set NumParameters
2009-07-22 15:27:31 -07:00
Ian Romanick
44843c7533
parser: Clean up generation of error strings during assembly
2009-07-22 15:06:49 -07:00
Ian Romanick
aec4291706
parser: Initialize unused instruction source registers
...
The 965 driver expects unused source registers (e.g., SrcReg[2] of a
DP3 instruction) to have a register file of PROGRAM_UNDEFINED.
Initializing these source registers ensures that this happens.
2009-07-22 12:29:48 -07:00
Ian Romanick
69d3d19b54
parser: Anonymous constants come from the PROGRAM_CONSTANT file
2009-07-22 10:51:18 -07:00
Ian Romanick
770cebbc29
ARB_fp/vp: Initial import of new ARB vp/fp assembler
...
This still needs quite a bit of work, but a bunch of the programs in progs/vp
produce correct results.
2009-07-20 17:44:36 -07:00
Ian Romanick
480567d5c4
Add new _mesa_new_parameter_list_sized to pre-allocate a parameter list
2009-07-20 15:37:24 -07:00
Keith Whitwell
cad82cd063
tgsi: get texturing working in vertex shader sse2 path
...
Missing file from previous commit.
2009-07-20 19:47:38 +01:00
Michel Dänzer
cd63e35603
Merge branch 'mesa_7_5_branch'
2009-07-20 20:41:11 +02:00
Michel Dänzer
5ed4404005
radeon: With DRI1, if we have HW stencil, only expose fbconfigs with stencil.
...
Otherwise simple apps like glxgears pick up a DirectColor visual since the X
server mixes the depth 32 visual in with the other GLX visuals, and this seems
to result in a (mostly) black screen due to a bad ColorMap for a lot of people.
The bad ColorMap may be a bug in the apps, the X server or X driver, and
regardless of that I think the X server should ideally make the depth 32 GLX
visual separate from the rest again, but in the meantime this makes us cope.
(depth_bits is either 16 or 24, never 0)
2009-07-20 20:34:04 +02:00
Keith Whitwell
442101dad7
tgsi: get texturing working in vertex shader sse2 path
2009-07-20 19:32:28 +01:00
Keith Whitwell
27a19be8d1
tgsi: fix regression in indexed const lookups
...
This function was calling get_input_base() and get_output_base() to
get the names of a couple of register to use as temps. Those
functions no longer return registers, so adjust it to get the
registers elsewhere.
This change doesn't address the issue that it's a fairly poor way to
grab a register name by calling a function with an apparently
unrelated meaning.
2009-07-20 19:32:28 +01:00
Kevin DeKorte
91512fa019
r600: Fix compilation
2009-07-20 09:27:17 -04:00
Cooper Yuan
19249a1ae7
R6xx/r7xx: Fix line stipple and width issue
2009-07-20 17:42:47 +08:00
Michel Dänzer
cf721c8137
Add common_ppc.c to MESA_GALLIUM_SOURCES.
2009-07-20 02:11:17 +02:00
Michel Dänzer
3d0009ce45
r300g: Fix SCons build.
2009-07-20 02:06:37 +02:00
Michel Dänzer
0b7a907f39
gallium/trace: Fix SCons build.
2009-07-20 02:05:38 +02:00
Michel Dänzer
3326be6c0a
r300g: Guard R500 register writes by is_r500 check.
...
Flagged by the DRM command stream checker. This allows the driver to work on
non-R500 cards.
2009-07-20 01:53:15 +02:00
Dave Airlie
a8921d0b52
gallium: make g3dvl build again
2009-07-18 17:44:44 +10:00