Kenneth Graunke
2809d70723
ir_reader: Emit global variables at the top of the instruction list.
...
Since functions are emitted when scanning for prototypes, functions
always come first, even if the original IR listed the variable
declarations first.
Fixes an ir_validate error (to be turned on in the next commit).
2010-09-04 02:19:38 -07:00
Kenneth Graunke
b758de16e3
ir_reader: Drop support for reading the old assignment format.
2010-09-04 02:19:38 -07:00
Kenneth Graunke
a878107d6c
glsl: Regenerate autogenerated file builtin_function.cpp.
2010-09-04 02:19:37 -07:00
Kenneth Graunke
bacbf941d2
glsl/builtins: Convert assignments to new format (with write mask).
2010-09-04 02:19:37 -07:00
Kenneth Graunke
03a6276477
ir_reader: Read the new assignment format (with write mask).
...
This preserves the ability to read the old format, for momentary
compatibility with all the existing IR implementations of built-ins.
2010-09-04 02:19:37 -07:00
Kenneth Graunke
a71b46a8ad
ir_reader: Track the current function and report it in error messages.
2010-09-04 02:19:37 -07:00
Kenneth Graunke
a7dc8081b6
glsl/builtins: Actually print the info log if reading a builtin failed.
2010-09-04 02:19:37 -07:00
Luca Barbieri
7a830ac49f
nvfx: consolidate tiny files
...
We probably want to reorganize the remaining files too, but that's
for later, maybe.
2010-09-04 05:31:52 +02:00
Luca Barbieri
603bef5572
mesa/st: add missing _mesa_set_fetch_functions in st_get_tex_image
...
Fixes piglit fdo25614-genmipmap.
2010-09-04 05:13:06 +02:00
Luca Barbieri
f1d50606ba
nvfx: fix vp DP2
2010-09-04 04:43:02 +02:00
Luca Barbieri
72648ca51f
nvfx: implement fp SSG properly
2010-09-04 04:38:43 +02:00
Luca Barbieri
527a4f11a7
nvfx: don't claim we support preds since the driver doesn't
2010-09-04 04:05:37 +02:00
Luca Barbieri
f1507806ca
nv40: support all 10 texcoords
2010-09-04 04:05:37 +02:00
Luca Barbieri
c98b29ec92
nvfx: add missing context init
2010-09-04 03:05:28 +02:00
Luca Barbieri
e887a9fcad
nvfx: tidy up state_emit
2010-09-04 03:05:22 +02:00
Luca Barbieri
71a8544f89
nvfx: support all coord conventions in hardware
2010-09-04 02:57:14 +02:00
Luca Barbieri
5dd296bcb1
nvfx: add missing pushbuffer space check
2010-09-04 02:37:41 +02:00
Luca Barbieri
351a669465
nvfx: support all possible vs consts
...
We were incorrectly setting a register that limited the range of
constants accessible via indirect addressing.
Setting it correctly, we can address all the constants the GPU
supports.
2010-09-04 02:27:59 +02:00
Luca Barbieri
fa82ad84fb
nvfx: set magic bit to round NPOT mipmap sizes down and not up
...
Does any API even use rounding-up?
2010-09-04 02:08:02 +02:00
Luca Barbieri
60fe5757ae
nvfx: allow nested blitter usage, fixing bug in clear
2010-09-04 02:08:02 +02:00
Brian Paul
3b8182793b
galahad: do map/unmap counting for resources
2010-09-03 16:35:07 -06:00
Brian Paul
f1de38b851
libgl-xlib: enable galahad support
...
If the GALLIUM_GALAHAD env var is 1 we'll wrap the regular driver with
the galahad validation driver.
2010-09-03 16:33:20 -06:00
Brian Paul
14056e052b
scons: added galahad to driver list
2010-09-03 16:25:44 -06:00
Brian Paul
2a5491792e
mesa: also build galahad driver
2010-09-03 15:57:48 -06:00
Brian Paul
a5fd039672
exec_list: replace class with struct
...
To match the definition below.
2010-09-03 15:25:55 -06:00
Brian Paul
8680c13240
mesa: fix up a comment
2010-09-03 15:22:26 -06:00
Brian Paul
d500ad4405
st/glx: added some comments
2010-09-03 15:22:26 -06:00
Luca Barbieri
befc66788b
nvfx: implement LIT in fp
2010-09-03 22:37:35 +02:00
Ian Romanick
f061524f07
glsl2: Use as_constant some places instead of constant_expression_value
...
The places where constant_expression_value are still used in loop
analysis are places where a new expression tree is created and
constant folding won't have happened. This is used, for example, when
we try to determine the maximal loop iteration count.
Based on review comments by Eric. "...rely on constant folding to
have done its job, instead of going all through the subtree again when
it wasn't a constant."
2010-09-03 11:55:22 -07:00
Ian Romanick
4e5b41c2f6
glsl2: Allow copy / constant propagation into array indices
2010-09-03 11:55:22 -07:00
Ian Romanick
de7c3fe31a
glsl2: Add module to perform simple loop unrolling
2010-09-03 11:55:22 -07:00
Ian Romanick
3bcfafcf03
glsl2: Track the number of ir_loop_jump instructions that are in a loop
2010-09-03 11:55:22 -07:00
Ian Romanick
351525d534
ir_expression: Add static operator_string method
...
I've used this in quite a few debug commits that never reached an
up-stream tree.
2010-09-03 11:55:21 -07:00
Ian Romanick
79082b8aca
exec_node: Add insert_before that inserts an entire list
2010-09-03 11:55:21 -07:00
Ian Romanick
7850ce0a99
glsl2: Eliminate zero-iteration loops
2010-09-03 11:55:21 -07:00
Ian Romanick
8df2dbf91d
glsl2: Perform initial bits of loop analysis during compilation
2010-09-03 11:55:21 -07:00
Ian Romanick
bfe3fbb38e
glsl2: Add module to suss out loop control variables from loop analysis data
...
This is the next step on the road to loop unrolling
2010-09-03 11:55:21 -07:00
Ian Romanick
9434a0749f
glsl2: Add module to analyze variables used in loops
...
This is the first step eventually leading to loop unrolling.
2010-09-03 11:55:21 -07:00
Ian Romanick
0f4f8c7364
ir_to_mesa: Handle loops with loop controls set
...
The downside of our talloc usage is that we can't really make static
(i.e., not created with new) instances of our IR types. This leads to
a lot of unnecessary dynamic allocation in this patch.
2010-09-03 11:55:21 -07:00
Ian Romanick
53acbd87d7
ir_validate: Validate loop control fields in ir_loop
2010-09-03 11:55:21 -07:00
Ian Romanick
3b85f1cc6c
glsl2: Add cmp field to ir_loop
...
This reprents the type of comparison between the loop induction
variable and the loop termination value.
2010-09-03 11:55:21 -07:00
Ian Romanick
c8ee8e07f7
glsl2: Set a flag when visiting the assignee of an assignment
2010-09-03 11:55:21 -07:00
Ian Romanick
29eebe9a9a
exec_list: Add pop_head
2010-09-03 11:55:21 -07:00
Ian Romanick
9710d272f7
ir_print_visitor: Print empty else blocks more compactly
2010-09-03 11:55:21 -07:00
Luca Barbieri
67a9a90794
nvfx: fix division by zero in vp-ignore-input
2010-09-03 20:57:44 +02:00
Luca Barbieri
f1980af71d
nvfx: report correct max lodbias
...
Fixes piglit lodbias
2010-09-03 20:54:48 +02:00
Luca Barbieri
657b88fc4c
nvfx: remove message
2010-09-03 20:48:14 +02:00
Luca Barbieri
b946984e3b
nvfx: support indirect addressing in vps
...
Negative or huge offsets not yet supported.
2010-09-03 20:48:14 +02:00
Alex Deucher
7e282b8e62
r600c: add proper returns for some evergreen functions
...
these weren't checked anyway.
Fixes:
https://bugs.freedesktop.org/show_bug.cgi?id=29999
2010-09-03 12:13:47 -04:00
Luca Barbieri
6ddfdaead8
nvfx: fix support for more than 8 texture units (fixes etqw crash)
2010-09-03 16:13:21 +02:00