Commit graph

13336 commits

Author SHA1 Message Date
Ben Skeggs
015871a075 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1 2007-12-18 11:02:46 +11:00
Brian
04a5a8b3bc updates for depth/stencil/alpha state 2007-12-17 14:06:17 -07:00
Brian
8978627ad0 Emit declarations for constants (references to the const buffer) 2007-12-17 14:00:35 -07:00
Zack Rusin
aeb5362281 i965: index the destination offset with regards to the current index 2007-12-17 14:36:31 -05:00
Zack Rusin
531efbab75 i965: return false when the function fails, not succeeds 2007-12-17 14:05:46 -05:00
Zack Rusin
55c1894d0a Add the new test program for fp's. 2007-12-17 13:23:47 -05:00
Keith Whitwell
bfe79babf9 gallium: incorporate alpha state into depth_stencil state object. 2007-12-17 16:14:29 +00:00
Ben Skeggs
c5ffd8e9af nv40: fix valgrind complaints 2007-12-17 21:49:16 +11:00
Ben Skeggs
8043d2d261 nv40: clean state a bit 2007-12-17 21:45:13 +11:00
Keith Whitwell
556e247cee 965: remove dead state atom decls 2007-12-17 10:30:38 +00:00
Keith Whitwell
3be91c5a49 965: fix for non-indexed draw path 2007-12-17 10:30:38 +00:00
Keith Whitwell
95adfb9fec 965: fix/hack check for NULL texunit in state upload 2007-12-17 10:30:38 +00:00
Keith Whitwell
b52e4477f8 965: fix ExtDivide check 2007-12-17 10:30:38 +00:00
Keith Whitwell
ae858511d0 965: put brw_constant_buffer atom directly in update list 2007-12-17 10:30:38 +00:00
Brian
41b1aa5109 switch on cpp instead of format 2007-12-16 10:00:51 -07:00
Ben Skeggs
7dcef36f4c nouveau: bump pushbuf size a little, so a "full" packet can fit 2007-12-17 00:46:30 +11:00
Ben Skeggs
66013a252f nv40: colormask thinko 2007-12-17 00:11:41 +11:00
Ben Skeggs
f7e99bf22c nv40: don't use vertex buffers for static vertices. 2007-12-16 23:45:30 +11:00
Ben Skeggs
4c2a3356cf nouveau: some cleanups 2007-12-16 21:31:28 +11:00
Ben Skeggs
b337ecdd8e nv40: fix culling 2007-12-16 20:44:44 +11:00
Ben Skeggs
19af6e9161 nv40: typo 2007-12-16 20:21:37 +11:00
Ben Skeggs
f287f687fe nv40: fp support for TGSI_FILE_IMMEDIATE.
arbfslight works, nouveau's first GLSL prog :)
2007-12-16 19:28:05 +11:00
Ben Skeggs
505e50de10 nv40: grow fragprog as needed 2007-12-16 18:36:18 +11:00
Ben Skeggs
ab4c2e014d nv40: destroy programs 2007-12-16 16:01:25 +11:00
Ben Skeggs
af0b4a50e5 nv40: make vbo state update static 2007-12-16 15:49:49 +11:00
Brian
47b5138d2d rename some 'mesa' functions 2007-12-15 16:51:57 -07:00
Brian
263e8f0572 Use tile functions in new p_tile.[ch]
This removes quite a bit of code duplicated in the drivers.
2007-12-15 16:44:29 -07:00
Brian
bccc4c5c01 Re-usable tile get/put functions 2007-12-15 16:42:22 -07:00
Brian
de1201a0ba don't allocate scratch tile in sp_tile_cache_flush_clear() to avoid stack overflow 2007-12-15 09:49:20 -07:00
Ben Skeggs
210bf673c2 nouveau: move extension stuff into nouveau_screen.c 2007-12-16 00:35:59 +11:00
Ben Skeggs
b5b9ac62e6 Merge branch 'upstream-gallium-0.1' into darktama-gallium-0.1 2007-12-15 09:48:11 +11:00
Brian
017f862de1 Added origin_lower_left field to pipe_rasterizer_state
This controls whether the window origin is considered to be the lower-left
or upper-left corner.
This effects computation of gl_FragCoord and the application of polygon stipple.
2007-12-14 12:25:25 -07:00
Brian
f3b3ea9742 update_samplers() didn't respect the sampler->texunit mapping.
This fixes the glsl/texdemo1.c program.
2007-12-14 11:43:15 -07:00
Brian
fce4612f8a set SamplerUnit[] entry in load_texture() just to be safe 2007-12-14 11:42:28 -07:00
Brian
814d4ff83a emit tgsi declarations for texture samplers 2007-12-14 11:17:48 -07:00
Brian
1e3b07f363 set program->SamplersUsed bit when using a texture instruction 2007-12-14 11:16:49 -07:00
Brian
e785f190f0 Don't always declare frag shader INPUT[0] as fragment position.
We were doing this for the sake of softpipe and the tgsi intergrepter since
we always need the fragment position and W-coordinate information in order
to compute fragment interpolants.
But that's not appropriate for hardware drivers.
The tgsi interpreter now get x,y,w information from a separate tgsi_exec_vector
variable setup by softpipe.
The new pipe_shader_state->input_map[] defines how vert shader outputs map
to frag shader inputs.  It may go away though, since one can also examine
the semantic label on frag shader input[0] to figure things out.
2007-12-14 11:00:46 -07:00
Brian
23e36c2dfb update comment for TGSI_TOKEN_TYPE_IMMEDIATE case 2007-12-14 10:46:29 -07:00
Ben Skeggs
7f89c776e1 nv40: less dodgy vp const/insn handling 2007-12-15 03:49:35 +11:00
Brian
a2b4d4a8db add missing code for PIPE_FORMAT_S8_UNORM renderbuffer 2007-12-13 18:26:48 -07:00
Brian
e2d7107cc2 remove unused var 2007-12-13 18:26:10 -07:00
Keith Whitwell
7a2d3ac5bc 965: get brw_wm_surface_state compiling again 2007-12-13 21:00:10 +00:00
Keith Whitwell
568fcf64c7 965: get fragment shader compiler compiling
Don't think that it will run though.
2007-12-13 20:39:31 +00:00
Zack Rusin
c605a55e9f i965: make the wm_surface compile 2007-12-13 11:43:55 -05:00
Keith Whitwell
c4d71c719c 965: implement magic buffer offset callback 2007-12-13 16:39:49 +00:00
Keith Whitwell
a6ae4ea854 965: magic callback to get buffer offset 2007-12-13 16:36:07 +00:00
Brian
81c9058ea9 Add QuadX,Y fields to tgsi_exec_machine to pass quad's position to tgsi interpreter.
The tgsi linear/perspective attribute code now uses these values rather than
input[0].  Need to update SSE path to take quad x,y as function params.
Then, we can remove additional code.
2007-12-13 09:05:15 -07:00
Keith Whitwell
8cd608d5ba 965: missing code from last commit 2007-12-13 15:39:34 +00:00
Keith Whitwell
559750298a 965: remove dead code 2007-12-13 15:37:19 +00:00
Keith Whitwell
0c2e87d565 965: remove dead code 2007-12-13 15:37:19 +00:00