Commit graph

115447 commits

Author SHA1 Message Date
Michal Krol
45cc4f546e tgsi: Fix source register short dump code. 2008-04-12 23:00:35 +02:00
Patrice Mandin
7f811f2c42 nv30: Update miptree stuff 2008-04-12 22:16:42 +02:00
Brian
2ebc99fcbc gallium: move duplicated compute_clipmask() code to draw_vs.h 2008-04-12 11:03:56 -06:00
Jakob Bornecrantz
5dcfc1f1b6 Fixed memory leak 2008-04-12 14:34:59 +02:00
Roland Scheidegger
32134b5508 r200: fix XPD vertex program instruction when using temps as inputs
due to the two read ports limit into temp memory may need the MAD_2 instruction
for the second instruction of the decomposed XPD.
While here, also try to avoid MAD_2 for MAD if all 3 inputs are temps but the
temps aren't actually distinct.
2008-04-12 02:40:27 +02:00
Patrice Mandin
186277ee92 nv30: Move some structures and functions from context to screen 2008-04-11 23:39:29 +02:00
Brian Paul
593cf5a6b5 gallium: merge the tgsi_emit_sse2() and tgsi_emit_sse2_fs() functions.
The two functions were mostly the same.  We can look at the shader header
info to determine if it's a vertex or fragment shader.
2008-04-11 15:27:00 -06:00
Brian Paul
7c2416f06e gallium: handle TGSI immediates in SSE code for vertex shaders 2008-04-11 15:02:21 -06:00
Brian Paul
e3cf0cd6a9 gallium: implement immediates (aka literals) for SSE fragment shaders 2008-04-11 14:19:32 -06:00
Brian Paul
097301395d gallium: comments 2008-04-11 14:19:31 -06:00
Brian Paul
9e8a85ef67 gallium: fix SCS codegen (sin scalar src comes from X, not Y) 2008-04-11 14:19:31 -06:00
Keith Whitwell
1690051521 mesa: fix broken x86_call() 2008-04-11 14:19:31 -06:00
Keith Whitwell
4d184cc331 gallium: fix broken x86_call() 2008-04-11 14:19:31 -06:00
Patrice Mandin
4c498c1b0c nv30: Do flip 2008-04-11 21:37:41 +02:00
Patrice Mandin
b1de9c948f nv30: Set pipe status on clear 2008-04-11 21:37:28 +02:00
Michel Dänzer
02250c855f gallium: Flush render cache at the beginning of fallback_copy_texsubimage().
It may get stale bits otherwise.
2008-04-11 17:45:41 +01:00
Brian Paul
d758479b9f mesa: Fix glBegin-time test for invalid programs/shaders.
Cherry-picked from master.
2008-04-11 10:14:17 -06:00
Brian Paul
51ad219d6f fix failed assertion (parameter can be a PROGRAM_CONSTANT) 2008-04-11 09:35:18 -06:00
Brian Paul
6d0f9d5a01 mesa: new Z-compositing test (glDrawPixels(GL_DEPTH) + stencil) 2008-04-11 09:21:37 -06:00
Brian Paul
e1c3560152 add missing glViewport calls
cherry-picked from master
2008-04-11 09:01:04 -06:00
Brian Paul
b69eb0360a add missing glViewport calls 2008-04-11 08:59:39 -06:00
Brian Paul
3f4e80c06b comments 2008-04-11 08:59:39 -06:00
Michal Krol
f41cc50ef0 tgsi: Dump processor type and version as a single token. 2008-04-11 11:50:09 +02:00
Michal Krol
2483062f10 tgsi: Dump semantics before interpolator. 2008-04-11 11:50:08 +02:00
José Fonseca
03a3373bdf gallium: Thread condition variables. 2008-04-11 12:18:06 +09:00
Brian Paul
544c236db1 mesa: add a new test for glDrawPixels(GL_DEPTH_COMPONENT) 2008-04-10 18:33:53 -06:00
Brian Paul
87b0b8e7bc gallium: flags param to surface_alloc_storage() is unused and deprecated 2008-04-10 18:33:53 -06:00
José Fonseca
bc56e87ce1 gallium: Attribute realloc leaks to the first malloc call. 2008-04-11 09:32:26 +09:00
Michel Dänzer
23635510e3 Get the default GLXPixmap texture target from the server when appropriate.
Fixes compiz with direct rendering when both GLX_TEXTURE_2D_EXT and
GLX_TEXTURE_RECTANGLE_EXT are supported for a GLXPixmap and the
application didn't specify the texture target as a GLX drawable attribute
when creating the GLX drawable.
2008-04-10 15:47:46 -04:00
Keith Whitwell
c95dcc4962 remove usage of vertex_header 2008-04-10 14:35:47 -04:00
Brian Paul
7a8ad75c89 gallium: fix readback of z16 values 2008-04-10 10:30:46 -06:00
Brian
842b8b4c33 more make clean items 2008-04-09 22:30:42 -06:00
Brian
26f0b8f506 use InitUniforms() 2008-04-09 22:30:42 -06:00
Brian
2dca3373ae Replace duplicated code with new shaderutil.c functions 2008-04-09 22:30:42 -06:00
Brian
90caba3d76 shader utility functions 2008-04-09 22:30:42 -06:00
Brian Paul
311e402684 gallium: more elaborate tracking of front color buffer state
This fixes the case where the app calls SwapBuffers then calls glReadPixels
to read the front color buffer.  We now keep track of when the front buffer
is a _logically_ copy of the back buffer (after SwapBuffers) and read from
the back color buffer instead of the front.
2008-04-09 18:39:51 -06:00
Brian Paul
54d7c399a8 gallium: more flush/finish changes
New, separate is_front_buffer_dirty() function.
2008-04-09 16:59:14 -06:00
Brian Paul
4ecbd5a70f gallium: reorder funcs 2008-04-09 16:32:46 -06:00
Brian Paul
aade2f41b0 gallium: call_flush_front_buffer() from st_glFinish() 2008-04-09 16:32:22 -06:00
Brian Paul
574f964667 gallium: fold st_gl_flush() into st_glFlush() 2008-04-09 16:30:28 -06:00
Brian Paul
9c86c0e88b gallium: refactor code, new flush_front_buffer() function 2008-04-09 16:26:56 -06:00
Brian Paul
a52faa9325 gallium: remove unneeded st->haveFramebufferSurfaces field. 2008-04-09 16:09:46 -06:00
Brian Paul
f7e475280a gallium: fix bug in PIPE_BLENDFACTOR_INV_DST_ALPHA case 2008-04-09 14:20:43 -06:00
Hasso Tepper
f9c8af31c5 Add support for dfbsd to mklib script. 2008-04-09 11:03:05 -07:00
Hasso Tepper
43887cf396 Add $(X11_INCLUDES) to shut makedepend up. 2008-04-09 10:56:12 -07:00
Hasso Tepper
9f8df2d07f autoconf: Add dfbsd support. 2008-04-09 10:51:21 -07:00
Ben Skeggs
bdfcce4792 nv40: use vb/ve counts rather than shader inputs for related loops 2008-04-09 14:02:55 +10:00
Brian
da8934034b gallium: re-order, clean-up PIPE_MAX_* definitions 2008-04-08 21:43:36 -06:00
Ben Skeggs
2a8de8ff94 Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1 2008-04-09 13:42:55 +10:00
Brian
be37e8350f gallium: remove obsolete/unused PIPE_ATTRIB_MAX 2008-04-08 21:38:44 -06:00