Commit graph

21415 commits

Author SHA1 Message Date
Younes Manton
fbf418d9dc gallium: Define PIPE_TEXTURE_USAGE_DYNAMIC.
Knowing how the client intends to use the texture will give the
driver the opportunity to optimize for such cases.
2009-01-10 13:52:04 -05:00
Younes Manton
72aa42e594 nouveau: Swizzle textures larger than nv04 SIFM limit in parts.
Limit of SIFM on nv40 is 1024x1024, not sure about others.
2009-01-10 13:52:04 -05:00
Brian Paul
6333005f7a glsl: force creation of new scope for for-loop body
Fixes regression in progs/demos/convolution.c due to loop unrolling.
This also allows the following to be compiled correctly:
for (int i = 0; i < n; i++) {
   int i;
   ...
}
This fix is a bit of a hack, however.  The better fix would be to change
the slang_shader.syn grammar.  Will revisit that...
2009-01-10 11:40:20 -07:00
Brian Paul
1d352b42a1 glsl: replace 0/1 with GL_FALSE/GL_TRUE 2009-01-10 11:39:05 -07:00
Ian Romanick
9939a306f7 swrast: Fix GL_ATI_separate_stencil
GL_ATI_separate_stencil is enabled by default for software
rasterizers, but the extension functions weren't hooked up to the
dispatch table.
2009-01-09 16:44:08 -08:00
José Fonseca
7844b4e730 draw: Add missing include. 2009-01-09 21:35:09 +00:00
Keith Whitwell
61e843ff4b xlib: move state tracker to glx/xlib
Also, remove makefile hacks.
2009-01-09 17:52:06 +00:00
Brian Paul
a719d70474 glsl: make minimum struct size = 2, not 1
1-component structs such as "struct foo { float x; }" could get placed at
any position within a register.  This caused some trouble computing the
field offset which assumed all struct objects were placed at R.x.
It would be unusual to hit this case in normal shaders.

(cherry picked from master, commit ca03e881a8)
2009-01-09 10:11:09 -07:00
Brian Paul
ca03e881a8 glsl: make minimum struct size = 2, not 1
1-component structs such as "struct foo { float x; }" could get placed at
any position within a register.  This caused some trouble computing the
field offset which assumed all struct objects were placed at R.x.
It would be unusual to hit this case in normal shaders.
2009-01-09 09:59:49 -07:00
Keith Whitwell
75aac1b496 xlib: disable more cell calls when GALLIUM_CELL not defined 2009-01-09 14:38:23 +00:00
Keith Whitwell
93bad7ffa1 xlib: strip out some CI and overlay support 2009-01-09 14:36:39 +00:00
Keith Whitwell
b7ab4a6e99 xlib: strip out some overlay support 2009-01-09 14:36:39 +00:00
Keith Whitwell
6322d638ce xlib: strip out glXAllocateMemoryNV & friends 2009-01-09 14:36:39 +00:00
Keith Whitwell
05f8e41b95 xlib: combine and eliminate some header files 2009-01-09 14:31:45 +00:00
Alan Hourihane
834c93687f st: build fix 2009-01-09 11:23:47 +00:00
Brian Paul
ffe7bda603 mesa: 7.3-rc-1 Makefile changes 2009-01-09 11:16:44 +00:00
Brian Paul
4441e0a7b2 mesa: latest glxext.h header, no version change 2009-01-09 11:16:44 +00:00
Brian Paul
258c55db11 mesa: import glext.h version 44 2009-01-09 11:16:43 +00:00
Brian Paul
bd03d9bdbb docs: dri2proto, libdrm tweaks 2009-01-09 11:16:42 +00:00
Brian Paul
233a58ff56 glsl: fix typo in the vec2 += operator function 2009-01-09 11:16:42 +00:00
Brian Paul
f75910e9b7 mesa: set version string to 7.3-rc1 2009-01-09 11:16:42 +00:00
Brian Paul
da37940973 docs: more 7.3 doc updates 2009-01-09 11:16:41 +00:00
Brian Paul
178f1ff486 docs: import 7.2 relnotes, start on 7.3 relnotes 2009-01-09 11:16:41 +00:00
Brian Paul
ebccb250f7 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-09 11:16:40 +00:00
Brian Paul
5273a5f0d7 mesa: fix off-by-one bug in _mesa_delete_instructions() 2009-01-09 11:16:40 +00:00
Eric Anholt
28c503d4bb i965: Fix GLSL FS DPH to return the right value instead of src0.w * src1.w. 2009-01-09 11:16:40 +00:00
Eric Anholt
739d38c8e9 i965: Remove worrisome comment about _NEW_PROGRAM signaling fp change.
Everything now depends on either BRW_NEW_FRAGMENT_PROGRAM or
BRW_NEW_VERTEX_PROGRAM.
2009-01-09 11:16:39 +00:00
Eric Anholt
510916f509 mesa: Remove _Active and _UseTexEnvProgram flags from fragment programs.
There was a note in state.c about _Active deserving to die, and there were
potential issues with it due to i965 forgetting to set _UseTexEnvProgram.
Removing both simplifies things.

Reviewed-by: Brian Paul <brianp@vmware.com>
2009-01-09 11:16:39 +00:00
Eric Anholt
5e116e52a2 i965: Remove dead brw_vs_tnl.c 2009-01-09 11:16:39 +00:00
Brian Paul
ac984c95ed i965: allow gl_FragData[0] usage when there's only one color buffer
If gl_FragData[0] is written but not gl_FragCOlor, use the former.
2009-01-09 11:16:38 +00:00
Brian Paul
efd1208424 mesa: additional case in file_string() 2009-01-09 11:16:38 +00:00
Brian Paul
d33b0f1a8d glsl: pass GLcontext::Extension info down into GLSL preprocessor
Now the #extension directives can be handled properly.
2009-01-09 11:16:38 +00:00
Brian Paul
1169457eca glsl: bump up MAX_FOR_LOOP_UNROLL_COMPLEXITY 2009-01-09 11:16:37 +00:00
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