Commit graph

115447 commits

Author SHA1 Message Date
Brian Paul
f8a4ad1aee glsl: check that the fragment shader does not write both gl_FragColor and gl_FragData[] 2009-01-09 11:16:37 +00:00
Brian Paul
5727ed130e i965: init dst reg RelAddr field to zero 2009-01-09 11:16:37 +00:00
Eric Anholt
735bdcfad8 i965: Note when we drop saturate mode on the floor in a VP. 2009-01-09 11:16:37 +00:00
Eric Anholt
8ea48b94f9 i965: Add support for LRP in VPs.
Bug #19226.
2009-01-09 11:16:37 +00:00
Brian Paul
bc5450f41c glsl: disable some unused functions (but don't remove just yet) 2009-01-09 11:16:36 +00:00
Brian Paul
3ebc79ce89 glsl: also unroll loops with variable declarations such as "for (int i = 0; ..." 2009-01-09 11:16:36 +00:00
Brian Paul
5dfd429c7e glsl: remove dead code 2009-01-09 11:16:36 +00:00
Brian Paul
89c078a58e mesa: OSMesa Makefile fixes (use LIB_DIR) 2009-01-09 11:16:36 +00:00
Brian Paul
ac8a33671a glsl: loop unroll adjustments
Add a "max complexity" heuristic to allow unrolling long loops with small
bodies and short loops with large bodies.

The loop unroll limits may need further tweaking...
2009-01-09 11:16:36 +00:00
Brian Paul
12fe642f96 glsl: implement loop unrolling for simple 'for' loops
Loops such as this will be unrolled:
  for (i = 0; i < 4; ++i) {
      body;
  }
where 'body' isn't too large.

This also helps to fix the issue reported in bug #19190.  The problem there
is indexing vector types with a variable index.  For example:
  vec4 v;
  v[2] = 1.0;  // equivalent to v.z = 1.0
  v[i] = 2.0;  // variable index into vector!!

Since the for-i loop can be unrolled, we can avoid the problems associated
with variable indexing into a vector (at least in this case).
2009-01-09 11:16:35 +00:00
Brian Paul
aed1bb6bc3 mesa: Move var declaration to top of scope.
(cherry picked from commit 3740a06e28)
2009-01-09 11:16:35 +00:00
Keith Whitwell
e3734593ae Merge commit 'origin/gallium-0.2' into gallium-xlib-rework
Conflicts:

	progs/glsl/Makefile
2009-01-09 10:08:06 +00:00
Brian Paul
630b6e896b glsl: fix typo in the vec2 += operator function 2009-01-08 17:24:42 -07:00
Brian Paul
4497a5a57d mesa: 7.3-rc-1 Makefile changes 2009-01-08 17:21:20 -07:00
Brian Paul
f7b4c2cca9 mesa: latest glxext.h header, no version change 2009-01-08 17:20:41 -07:00
Brian Paul
08fdc741bc mesa: import glext.h version 44 2009-01-08 17:20:18 -07:00
Brian Paul
d0c2cbd257 docs: dri2proto, libdrm tweaks 2009-01-08 17:19:51 -07:00
Brian Paul
acd99f67cc glsl: fix typo in the vec2 += operator function 2009-01-08 17:07:28 -07:00
Brian Paul
0713e9da73 mesa: set version string to 7.3-rc1 2009-01-08 16:16:36 -07:00
Brian Paul
2c0ce92e8a docs: updated Cell docs, from gallium-0.2 branch 2009-01-08 16:15:31 -07:00
Brian Paul
1ed9b1ec90 docs: more 7.3 doc updates 2009-01-08 16:14:19 -07:00
Brian Paul
11ade9a3d1 docs: import 7.2 relnotes, start on 7.3 relnotes 2009-01-08 16:12:23 -07:00
Brian Paul
1efbad7499 glsl: fix broken +=, -=, *=, /= operators
These functions need to return the final computed value.
Now expressions such as a = (b += c) work properly.
Also, no need to use __asm intrinsics in these functions.  The resulting
code is the same when using ordinary arithmetic operators and is more legible.
2009-01-08 15:52:06 -07:00
Brian Paul
730a407ca2 glsl: fix broken +=, -=, *=, /= operators
These functions need to return the final computed value.
Now expressions such as a = (b += c) work properly.
Also, no need to use __asm intrinsics in these functions.  The resulting
code is the same when using ordinary arithmetic operators and is more legible.
2009-01-08 15:35:23 -07:00
Brian Paul
19c877c327 mesa: fix off-by-one bug in _mesa_delete_instructions() 2009-01-08 15:35:23 -07:00
Keith Whitwell
221352bbd7 xlib: strip out glXAllocateMemoryMESA & friends 2009-01-08 16:35:05 +00:00
Keith Whitwell
44a9f505d7 xlib: remove VMS tweaks, these should be moved to p_compiler.h if needed 2009-01-08 16:14:45 +00:00
Keith Whitwell
3afe1e42d7 xlib: remove unsued _glxapi_get_extensions func 2009-01-08 16:14:01 +00:00
Keith Whitwell
ee2876316a xlib: strip out some unused XMesa api functions 2009-01-08 16:05:45 +00:00
Keith Whitwell
92e23ef81f xlib: rename xfonts.c to fakeglx_fonts.c 2009-01-08 15:47:32 +00:00
Keith Whitwell
25deb852f8 xlib: rename old_xmesa.h to xm_api.h 2009-01-08 15:42:56 +00:00
Keith Whitwell
e83e2c4792 xlib: remove XMesaMakeCurrent, use XMesaMakeCurrent2 always 2009-01-08 15:40:58 +00:00
Keith Whitwell
2b960128e8 xlib: remove old xmesa_x.h file and all its defines 2009-01-08 15:35:35 +00:00
Keith Whitwell
e73dc63448 glsl: remove duplicate makefile targets 2009-01-08 15:35:35 +00:00
Keith Whitwell
153b4d5cdd xlib: remove some XMesa types, just use the native Xlib ones 2009-01-08 15:35:35 +00:00
Brian Paul
a129c7268a cell: fix breakage from xlib re-org
Some of these fixes are quick band-aids for now.
2009-01-08 08:30:11 -07:00
Keith Whitwell
94222d58e7 xlib: strip out more 3dfx stuff 2009-01-08 15:10:41 +00:00
Keith Whitwell
9ed74c61d4 xlib: pull in private copies of the GL/xmesa*.h headers 2009-01-08 15:10:05 +00:00
Keith Whitwell
cae13a8e4f xlib: strip out FX stuff 2009-01-08 15:05:08 +00:00
Keith Whitwell
18ad0e3a28 xlib: remove XFree86Server stuff 2009-01-08 15:00:27 +00:00
Keith Whitwell
2c8ffd70b7 xlib: remove realglx.[ch] 2009-01-08 14:55:52 +00:00
Keith Whitwell
002dfb12fc gallium: split driver-independent code out of xlib winsys
Place in new xlib state-tracker.  This is a statetracker for the GLX API.
2009-01-08 14:10:56 +00:00
José Fonseca
5cad143e54 glut: Unlist file.
Again..
2009-01-08 12:42:25 +00:00
José Fonseca
500e05d437 gdi: Add newline at end of file. 2009-01-08 12:42:00 +00:00
José Fonseca
ab3a9f1eed gallium: Replace uint64 by standard uint64_t.
uint64 is not (so?) standard, and often redefined by third parties,
causing name clashes.
2009-01-08 12:41:45 +00:00
José Fonseca
395edbc515 draw: Predeclare struct. 2009-01-08 12:31:36 +00:00
José Fonseca
a3ee0aa1bb Merge commit 'origin/gallium-0.1' into gallium-0.2
Conflicts:

	src/gallium/auxiliary/tgsi/tgsi_exec.c
	src/gallium/drivers/cell/spu/spu_command.h
	src/gallium/include/pipe/p_shader_tokens.h
	src/mesa/main/config.h
	src/mesa/main/mtypes.h
	src/mesa/shader/prog_execute.c
	src/mesa/shader/slang/slang_emit.c
	src/mesa/state_tracker/st_program.c
	src/mesa/state_tracker/wgl/stw_wgl.h
	src/mesa/state_tracker/wgl/stw_wgl_pixelformat.h
2009-01-08 12:31:14 +00:00
José Fonseca
2d3953fd5f mesa: Add _mesa_snprintf.
On Windows snprintf is renamed as _snprintf.
2009-01-08 12:06:07 +00:00
Brian Paul
b57797f3a8 mesa: fix GL_DEPTH_CLEAR_VALUE casting 2009-01-08 12:06:01 +00:00
Brian Paul
0f5c71afd9 mesa: fix float->int mapping for glGetIntegerv(GL_DEPTH_CLEAR_VALUE)
(cherry picked from commit 8124faf89d)

Conflicts:

	src/mesa/main/get.c
2009-01-08 12:05:33 +00:00