Commit graph

37818 commits

Author SHA1 Message Date
Eric Anholt
f6b03f3235 glsl2: Do algebraic optimizations after linking as well.
Linking brings in inlining of builtins, so we weren't catching the
(rcp(/sqrt(x)) -> rsq(x)) without it.
2010-07-31 15:52:24 -07:00
Eric Anholt
784695442c glsl2: Add new tree grafting optimization pass. 2010-07-31 15:52:21 -07:00
Eric Anholt
d72edc4ddd glsl2: Factor out the variable refcounting part of ir_dead_code.cpp. 2010-07-31 15:52:21 -07:00
Vinson Lee
e4ad42d421 mesa: Include missing headers in renderbuffer.h. 2010-07-31 15:45:40 -07:00
Vinson Lee
6d86b0116e mesa: Include missing header in remap.h.
Include compiler.h for INLINE symbol.
2010-07-31 15:39:35 -07:00
Vinson Lee
5fa1af0905 r600g: Remove unnecessary header. 2010-07-31 14:56:53 -07:00
Vinson Lee
245d5a8913 mesa: Remove unnecessary headers. 2010-07-31 14:37:32 -07:00
Vinson Lee
dba7875cda swrast: Remove unnecessary headers. 2010-07-31 13:35:17 -07:00
Vinson Lee
db71bdc31c egl: Fix '_eglAddAtExitCall' implicit declaration warning. 2010-07-31 13:28:32 -07:00
Aras Pranckevicius
1c325af4d6 glsl2: Fix stack smash when ternary selection is used. 2010-07-31 12:00:01 -07:00
Chia-I Wu
6c7e0b95a4 egl: Add checks for EGL_MESA_screen_surface.
This allows Mesa EGL to be compiled with eglext.h that does not define
EGL_MESA_screen_surface.
2010-07-31 17:49:32 +08:00
Vinson Lee
3cc471e429 tnl: Remove unnecessary headers. 2010-07-31 00:55:13 -07:00
Vinson Lee
ca0b0899d8 st/dri: Remove unnecessary headers. 2010-07-31 00:41:43 -07:00
Vinson Lee
2f30a83ea8 mesa: Include missing header in pixelstore.h.
Include mtypes.h for GLcontext symbol.
2010-07-30 23:32:32 -07:00
Vinson Lee
378b8df47a mesa: Include missing headers in nvprogram.h. 2010-07-30 23:30:38 -07:00
Eric Anholt
3fa1b85196 glsl2: Fix the implementation of atan(y, x).
So many problems here.  One is that we can't do the quadrant handling
for all the channels at the same time, so we call the float(y, x)
version multiple times.  I'd also left out the x == 0 handling.  Also,
the quadrant handling was broken for y == 0, so there was a funny
discontinuity on the +x side if you plugged in obvious values to test.

I generated the atan(float y, float x) code from a short segment of
GLSL and pasted it in by hand.  It would be nice to automate that
somehow.

Fixes:
glsl-fs-atan-1
glsl-fs-atan-2
2010-07-30 15:19:00 -07:00
Jerome Glisse
094d66f459 r600g: add KIL opcode support
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-07-30 18:05:07 -04:00
Carl Worth
ec9675ec53 ast: Initialize location data in constructor of all ast_node objects.
This prevents using uninitialized data in _msea_glsl_error in some
cases, (including at least 6 piglit tests). Thanks to valgrind for
pointing out the problem!
2010-07-30 15:03:37 -07:00
Eric Anholt
40f57c2bec ir_to_mesa: Add the function name as a comment to BGNSUB and ENDSUB. 2010-07-30 14:57:44 -07:00
Eric Anholt
5e5583ee06 glsl2: Update the callee pointer of calls to newly-linked-in functions.
Otherwise, ir_function_inlining will see the body of the function from
the unlinked version of the shader, which won't have had the lowering
passes done on it or linking's variable remapping.
2010-07-30 14:57:22 -07:00
George Sapountzis
873ddf547d st/dri: move backend hooks to appropriate object 2010-07-30 23:43:26 +03:00
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
Li Peng
c33c1912dd configure: fix wrong variable name GLESv1_LIB_DEPS
GLESv1_CM_LIB_DEPS is defined in "configs/autoconf.in",
but configure.ac uses GLESv1_LIB_DEPS.

Signed-off-by: Li Peng <peng.li@linux.intel.com>
2010-07-30 08:52:58 -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