Commit graph

92185 commits

Author SHA1 Message Date
Ben Skeggs
7d2085bd7d nouveau: PIPE_ATTRIB_MAX -> PIPE_MAX_ATTRIBS 2008-04-15 13:25:28 +10:00
Ben Skeggs
276e177dfb Merge remote branch 'upstream/gallium-0.1' into nouveau-gallium-0.1 2008-04-15 13:23:23 +10:00
Brian
bbb042f0b8 fix multi-draw buffer regression 2008-04-14 21:02:34 -06:00
Brian
d3878b070b gallium: enable new quad output code, remove old code 2008-04-14 21:01:40 -06:00
Brian
90b9a11a6d gallium: fix semantic indexes for outputs 2008-04-14 20:58:05 -06:00
Brian
e4b3c13d7a gallium: fix multi drawbuffer fb state 2008-04-14 20:57:15 -06:00
Brian
b54225ccd6 gallium: set ctx->Const.MaxDrawBuffers 2008-04-14 20:56:08 -06:00
Brian
fdd794dcfa gallium: fix PIPE_CAP_MAX_RENDER_TARGETS query 2008-04-14 20:55:14 -06:00
José Fonseca
01c7dd2629 gallium: Add draw_pt_fetch_shade_pipeline.c to scons build. 2008-04-15 10:38:05 +09:00
José Fonseca
5b8fa51847 gallium: Don't assume snprintf are always available. 2008-04-15 10:13:52 +09:00
José Fonseca
21ae3d2721 gallium: Serialize buffers writes.
Allow concurrent reads from buffers by the CPU/GPU, but serialize
all writes.
2008-04-15 10:13:52 +09:00
Brian Paul
5807c0242c fix GL_ARB_texture_rectangle breakage 2008-04-14 14:38:11 -06:00
Brian Paul
118c2bc860 only use __x86_64__, not __amd64__ (bug 15503) 2008-04-14 14:10:32 -06:00
Brian Paul
8fd2b7d9dd fix GL_ARB_texture_rectangle breakage 2008-04-14 13:43:24 -06:00
Brian Paul
3403f9fe13 check for _WIN32 and __WIN32__ 2008-04-14 13:41:39 -06:00
David Flynn
7be8d5664a define #extension GL_ARB_texture_rectangle 2008-04-14 13:41:39 -06:00
David Flynn
78852986e6 mesa: define #extension GL_ARB_texture_rectangle 2008-04-14 12:56:10 -06:00
Brian Paul
f58ab8e75c gallium: take reduced prim, fill modes into account when culling 2008-04-14 10:57:40 -06:00
Zack Rusin
983b6a73e1 use the new macro 2008-04-14 12:32:25 -04:00
Zack Rusin
2ba6e1fa71 silence some warnings 2008-04-14 12:29:23 -04:00
Zack Rusin
e330919785 pass vertex size to shaders so that callee can decide on the size
of the vertices and not always have to use the maximum vertex
allocation size for them
2008-04-14 12:27:24 -04:00
Keith Whitwell
871d39ec8c softpipe: calculate determinant for all triangles, don't rely on draw module to do it 2008-04-14 16:18:00 +01:00
Keith Whitwell
8cbda9f108 draw: remove dead code 2008-04-14 16:15:39 +01:00
Jakob Bornecrantz
ca750dd045 Removed intel_ioctl it wasn't needed 2008-04-14 17:02:02 +02:00
Keith Whitwell
36bacf97a6 draw: always malloc verts for fetch_shade_pipeline 2008-04-14 12:46:57 +01:00
Keith Whitwell
a82e4996a1 draw: flush pipeline before trying to allocate more hw vertices 2008-04-14 12:37:19 +01:00
Keith Whitwell
e106b2d3d6 draw: move vertex header init out of fetch_shade_pipeline.c 2008-04-14 12:27:25 +01:00
Keith Whitwell
caf293343f draw: hide passthrough shading paths behind an environment variable 2008-04-14 12:08:46 +01:00
Keith Whitwell
8e7326832a softpipe: do our own culling, don't rely on the draw module.
May not always happen due to passthrough modes, etc.
2008-04-14 11:32:50 +01:00
Zack Rusin
0c1cb54923 Implement fetch/shade/pipeline or emit vertex passthrough. 2008-04-14 11:05:37 +01:00
Zack Rusin
3f7a3dd58c Make shaders operate on a block of memory instead of arrays of vertex_header's 2008-04-14 11:00:35 +01:00
Zack Rusin
808f968f3a return true if one of the vertices has been clipped 2008-04-14 11:00:35 +01:00
Zack Rusin
aadbb1d7fb pass arbitrary number of vertices to the shader execution cycle 2008-04-14 11:00:35 +01:00
Zack Rusin
4f550ab821 introduce a define to maxout the processed vertices 2008-04-14 11:00:26 +01:00
José Fonseca
84994693f5 gallium: Add u_time.c 2008-04-13 18:52:54 +09:00
José Fonseca
fb2b5f7a4a gallium: Buffer cache. 2008-04-13 15:10:18 +09:00
José Fonseca
21c302b0ec gallium: Initial port of Thomas slab suballocator to pipebuffer.
Not tested yet -- just compiles.

This includes only the slab algorithm. Fencing is already
implemented in pb_bufmgr_fence and time-based caching will be commited in a
separate module shortly.
2008-04-13 15:10:17 +09:00
José Fonseca
cd59312406 gallium: OS independent time-manipulation functions. 2008-04-13 15:10:17 +09:00
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