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
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
Keith Whitwell
19025605e9
965: remove dead code
2007-12-13 15:37:19 +00:00
Keith Whitwell
7abe2bfefa
965: remove dead code
2007-12-13 15:37:19 +00:00
Keith Whitwell
54f1ce3b27
965: remove reference to metaops
2007-12-13 15:37:19 +00:00
Keith Whitwell
1f1506ec94
965: use state atom array directly
2007-12-13 15:37:19 +00:00
Keith Whitwell
4844b9fb9d
965: calculate nr enabled vbos on the fly
2007-12-13 15:37:18 +00:00
Zack Rusin
da89104c57
Actually allocate the output registers.
...
In tgsi the output's will (hopefully) consecutive so this
check (besides not being currently implemented) is not
necessary.
2007-12-13 10:33:12 -05:00
Zack Rusin
6f111e9c81
Don't generate spurious vs, move the enable a bit to do that.
2007-12-13 10:31:39 -05:00
Brian
417c295333
added r5g5b5_put_tile_rgba()
2007-12-12 16:30:49 -07:00
Brian
4416514aa8
Remove get/put_tile_rgba() functions.
...
Temporarily, use the functions from sp_rgba_tile.c
2007-12-12 16:05:38 -07:00
Brian
034476fc78
remove #include
2007-12-12 16:04:52 -07:00
Brian
a4ca2591f6
Move float/rgba tile get/put functions into new file.
...
This should be moved into a gallium util lib (location tbd) so it can also
be used by the state tracker.
Then, remove the pipe->get/put_tile_rgba() functions.
2007-12-12 16:00:11 -07:00
Brian
708251558c
PIPE_SCREEN_SURFACE no longer needed
2007-12-12 15:24:01 -07:00
Brian
20eae595fa
Re-org of st_create_framebuffer() and renderbuffer format selection.
...
st_create_framebuffer() now takes pipe_formats for the color, depth, stencil
buffers.
This avoids a round-about chain of calls to pipe->is_format_supported() for
window renderbuffers (their format never changes).
Renderbuffer format selection code in st_format.c is simpler now too.
2007-12-12 14:55:57 -07:00
Brian
a51d0e419a
move some code to avoid deref of NULL ptr
2007-12-12 14:45:22 -07:00
Keith Whitwell
06036bc8c4
965: remove complex compiler for simple fragment programs.
...
Keep the simple compiler for complex fragment programs...
2007-12-12 20:09:04 +00:00
Keith Whitwell
ea7c533d40
965: sketch changes to brw_wm_surface_state.c
2007-12-12 20:09:04 +00:00
Keith Whitwell
216de6ab5b
965: delete dead files
2007-12-12 20:09:04 +00:00
Keith Whitwell
5978289df1
965: delete dead files
2007-12-12 20:09:03 +00:00
Keith Whitwell
20e6a9b86d
965: delete dead files
2007-12-12 20:09:03 +00:00
Brian
69292a0067
remove old assertion
2007-12-12 13:08:00 -07:00
Brian
829099210b
add PIPE_FORMAT_R5G6B5_UNORM to list of supported screen surface types
2007-12-12 12:59:45 -07:00
Brian
b22287d097
update format param type
2007-12-12 12:59:19 -07:00
Brian
d7aa446369
Try PIPE_FORMAT_R5G6B5_UNORM for GL_RGB5 request.
2007-12-12 12:58:59 -07:00
Brian
77baacbab1
fix some mistakes in the _PIPE_FORMAT_x #defines
2007-12-12 12:58:04 -07:00
Zack Rusin
a308a3e3f8
i965: compile vertex shaders and emit hardware instructions
...
impossible to test because fragment shaders haven't been done yet
and it crahses in the fragment shading code. but given that i'm
infallible (and highly dillusional) i'm sure it's correct.
2007-12-12 12:26:33 -05:00
José Fonseca
eaa82d33bf
Add src/mesa to include path.
2007-12-12 16:04:58 +00:00
Zack Rusin
94e19777c9
i915tex: remove. it's deprecated and causes merge problems
...
we did some small changes in the beginning of the gallium3d
lifecycle in i915tex which is not in master anymore and just
causes problems when doing merges. getting rid of the headache
by just nuking it here
2007-12-12 05:48:10 -05:00
Brian
1029c00a26
remove more -I paths
2007-12-11 19:17:31 -07:00
Brian
5dcc894ea2
prefix some #includes
2007-12-11 19:16:46 -07:00
Brian
6f467e5737
trim down #includes
2007-12-11 19:16:26 -07:00
Brian
68caa076a9
trim down -I options
2007-12-11 18:58:48 -07:00
Brian
3d9bdaa80b
include pipe/tgsi/exec/tgsi_sse2.h if needed. Silences warning.
2007-12-11 18:58:32 -07:00
Brian
b2ad30d571
Cell: draw smooth-shaded triangle
2007-12-11 18:26:52 -07:00