George Sapountzis
a30b966f83
st/dri: drop dri1_helper
2010-07-30 23:43:26 +03:00
George Sapountzis
2e4ad14a52
st/dri: mv driDriverAPI to backends
2010-07-30 23:43:26 +03:00
Kenneth Graunke
939a1807fe
glsl2: Initialize ir_function_signature::is_built_in.
...
Fixes a valgrind error.
2010-07-30 13:30:11 -07:00
Brian Paul
b3e3d0da58
st/mesa: better handling of indirect addressing of temp/const register files
...
With gl_program::IndirectRegisterFiles we can distinguish between indirect
addressing of constants vs. temporaries. In the case of temporaries,
declare all temps up front sequentially.
Fixes fd.o bug 29305.
2010-07-30 14:29:19 -06:00
Brian Paul
56643096f1
mesa: added gl_program::IndirectRegisterFiles field
...
Now drivers, etc. can know which register files are accessed with
indirect addressing. Before we just checked gl_program::NumAddressRegs
but didn't know if that was the constant buffer, temp regs, or what.
The only user of this new field so far will be the gallium state tracker.
2010-07-30 14:29:19 -06:00
Kenneth Graunke
805cbf3922
glcpp: Don't look for backslashes before the beginning of the string.
...
Fixes a valgrind error.
2010-07-30 13:26:14 -07:00
Vinson Lee
79ab5b9798
llvmpipe: Silence unused value warning.
2010-07-30 13:11:14 -07:00
Vinson Lee
c4c2897367
mesa: Add missing header to multisample.h.
...
Include mtypes.h for GLcontext symbol.
2010-07-30 13:00:13 -07:00
Zack Rusin
dd406cf341
draw: actually a noop, rather than not implemented
...
we just have nothing to do in it right now
2010-07-30 15:42:50 -04:00
Vinson Lee
dbfe11c7c3
mesa: Remove unnecessary header from colormac.h.
2010-07-30 12:32:47 -07:00
Brian Paul
ce1fed1659
tgsi: remove incorrect assertion
2010-07-30 13:28:42 -06:00
Vinson Lee
1a537b639e
mesa: Remove unnecessary headers.
2010-07-30 12:13:17 -07:00
Vinson Lee
078eff659a
llvmpipe: Fix implicit declaration of lp_func_delete_body warnings.
2010-07-30 11:48:48 -07:00
Chia-I Wu
0e7d7d3051
util: Fix the range of util_draw_elements_instanced.
...
Keep min_index and max_index at their defaults (0 and ~0).
2010-07-30 23:45:56 +08:00
Zack Rusin
042018a943
llvmpipe: delete function bodies after generating machine code
2010-07-30 16:25:29 +01:00
Jerome Glisse
6c288d06ac
r600g: fix typo in tex instruction + shader semantic id fix
...
It seems we never get semantic id from TGSI so fallback
to use output number as id.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-30 11:12:10 -04:00
Keith Whitwell
f623d06c49
util: more helpers for old draw code
2010-07-30 10:47:20 +01:00
Vinson Lee
3fdd9fa556
mesa: Include macros.h in files that use symbols from macros.h.
...
Don't rely on inclusion of other files that already include macros.h.
2010-07-30 00:41:08 -07:00
Vinson Lee
bddbdd624f
mesa: Include macros.h in attrib.c for COPY_4FV symbol.
2010-07-30 00:18:09 -07:00
Vinson Lee
11fce3a821
intel: Add missing header to intel_context.c.
...
Fixes "implicit declaration of function
_mesa_get_incomplete_framebuffer" warning.
2010-07-30 00:06:40 -07:00
Vinson Lee
5264615b52
mesa: Reduce clip.h header file inclusion.
2010-07-30 00:00:22 -07:00
Vinson Lee
95e3832b53
mesa: Add missing header to framebuffer.h.
...
Include mtypes.h for GLvisual and GLcontext symbols.
2010-07-29 23:53:13 -07:00
Vinson Lee
c6466f599c
mesa: Add missing header to fboject.h.
...
Add mtypes.h for GLcontext symbol.
2010-07-29 23:50:32 -07:00
Vinson Lee
f58ec9dc4d
mesa: Add missing header to texgetimage.h.
2010-07-29 23:41:46 -07:00
Vinson Lee
b5de2be8e0
mesa: Add missing header to texrender.h.
...
Add mtypes.h for GLcontext symbol.
2010-07-29 23:38:17 -07:00
Vinson Lee
1978247f85
mesa: Add missing header and forward declarations to uniforms.h.
2010-07-29 23:04:50 -07:00
Vinson Lee
3ef2a490d2
mesa: Add missing headers to viewport.h.
2010-07-29 22:57:54 -07:00
Vinson Lee
86abec0294
mesa: Add missing header to depthstencil.h.
...
Add mtypes.h for GLcontext symbol.
2010-07-29 22:43:42 -07:00
Vinson Lee
989c60bc92
mesa: Add missing headers to debug.h.
2010-07-29 22:41:03 -07:00
Vinson Lee
dfc7b7212f
intel: Add missing header.
...
Add context.h for NEED_SECONDARY_COLOR symbol.
2010-07-29 19:10:14 -07:00
Vinson Lee
ebdc537ff7
dri: Add missing header to dri_metaops.c.
...
Add context.h for FLUSH_VERTICES symbol.
2010-07-29 19:04:43 -07:00
Vinson Lee
7e54c4a646
mesa: Reduce clear.h header file inclusion.
2010-07-29 18:15:41 -07:00
Vinson Lee
e5c128379a
mesa: Reduce bufferobj.h header file inclusion.
...
Directly include mtypes.h instead of including context.h to include
mtypes.h.
2010-07-29 18:03:20 -07:00
Vinson Lee
bbe1385201
mesa: Remove unnecessary headers.
2010-07-29 17:14:32 -07:00
Brian Paul
e75da1a8d6
llvmpipe: fix on-debug build breakage
2010-07-29 17:49:49 -06:00
Brian Paul
6c1625cc40
llvmpipe: added some jit debug code
...
If we crash in the jitted function we can examine jit_line and
jit_state in gdb to learn more about the shader.
2010-07-29 17:31:18 -06:00
Brian Paul
b4c8de1ff2
draw: do bounds checking of array elements (debug only)
...
Make sure that all the element indexes actually lie inside the vertex
buffer.
Also, rename pipe_run() to pipe_run_elts() to be more specific.
And assert/check the vertex count for the non-indexed case.
2010-07-29 17:25:54 -06:00
Brian Paul
d88b6e19c1
draw: assorted clean-ups in clipper code
2010-07-29 17:25:54 -06:00
Brian Paul
ba2cc3b8e6
gallium: implement bounds checking for constant buffers
...
Plumb the constant buffer sizes down into the tgsi interpreter where
we can do bounds checking. Optional debug code warns upon out-of-bounds
reading. Plus add a few other assertions in the TGSI interpreter.
2010-07-29 17:25:54 -06:00
Brian Paul
8a2933f366
draw: add vertex buffer offset in draw_print_arrays()
2010-07-29 17:25:54 -06:00
Brian Paul
d1f38baa01
llvmpipe: silence warnings in lp_test_sincos.c
2010-07-29 17:25:54 -06:00
Jerome Glisse
7a73390f91
r600g: mipmap early support + EX2/ABS instruction + culling
...
Add mipmap support (demos/src/redbook/mipmap is working)
Add EX2/ABS shader instruction support.
Add face culling support.
Misc fixes.
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-29 19:05:57 -04:00
Eric Anholt
0cf545ec69
glsl2: Do ir_if_return on the way out, not the way in.
...
The problem with doing it on the way in is that for a function with
multiple early returns, we'll move an outer block in, then restart the
pass, then move the two inside returns out, then never move outer
blocks in again because the remaining early returns are inside an else
block and they don't know that there's a return just after their
block. By going inside-out, we get the early returns stacked up so
that they all move out with a series of
move_returns_after_block().
Fixes (on i965):
glsl-fs-raytrace-bug27060
glsl-vs-raytrace-bug26691
2010-07-29 15:56:17 -07:00
Kristian Høgsberg
e3e25dee20
glx: Fix copy/paste bug in glXWaitX and glXWaitGL
...
https://bugs.freedesktop.org/show_bug.cgi?id=29304
2010-07-29 18:49:10 -04:00
Kristian Høgsberg
f485ee724d
glx: Compare old ctx against dummyCtx, not NULL
...
https://bugs.freedesktop.org/show_bug.cgi?id=29302
2010-07-29 18:49:10 -04:00
Eric Anholt
a62ef12ef2
glsl2: Make sure functions end with a return before doing ir_if_return.
...
This catches a few remaining functions that weren't getting inlined,
generally operating on global or out variables and using an early
return to skip work when possible.
Fixes for i965:
glsl1-function with early return (3)
2010-07-29 15:19:44 -07:00
Eric Anholt
18964618a1
glsl2: Make ir_if_return handle if () { return } else { not return }
...
This makes many remaining functions inlinable.
Fixes for i965:
glsl1-function with early return (1)
glsl1-function with early return (2)
2010-07-29 15:19:37 -07:00
Eric Anholt
92a3768cef
glsl2: Refactor a bit of ir_if_return for the next changes.
2010-07-29 15:19:37 -07:00
Eric Anholt
806cb9f952
ir_to_mesa: Don't emit a duplicate return at the end of a function.
...
It was harmless, but ugly.
2010-07-29 15:19:37 -07:00
Eric Anholt
0e19922558
glsl2: Allow use of _mesa_print_ir without a parse state on hand.
2010-07-29 15:09:31 -07:00