Commit graph

12190 commits

Author SHA1 Message Date
Brian
a1e332950b added z16/z32_git_tile(), change s8z24_get_tile() to return Z as float, ignore stencil 2007-10-13 09:04:35 -06:00
Brian
89414d951d Use KIL in glBitmap shader to cull the fragments for 0 bits. 2007-10-12 16:16:20 -06:00
Brian
47fc06753e added assertion to be sure we don't exceed bitfield size 2007-10-12 16:13:15 -06:00
Brian
2a699038dc added code to print extended swizzles 2007-10-12 16:12:22 -06:00
Brian
4becfdfdd8 change exec_kilp() to only touch lowest four bits in kilmask 2007-10-12 16:11:58 -06:00
Brian
e552b9bd09 initial use of KIL for glBitmap rendering 2007-10-12 09:42:06 -06:00
Brian
3fb88639af Init draw->prim = ~0
We weren't rendering correctly if the first thing drawn was a point (PRIM_MODE_POINT=0).
2007-10-11 11:09:36 -06:00
Brian
afd6bd3cb0 rename some vars, updated comments 2007-10-11 10:03:59 -06:00
Brian
3ab326e1d7 remove unused tgsi_attrib_to_mesa_attrib() 2007-10-11 10:01:17 -06:00
Brian
55dd7d7947 update st_feedback_draw_vbo() 2007-10-11 10:00:54 -06:00
Brian
4d79f2c4a2 streamline st_draw_vbo() a bit more, free user-space buffers at end 2007-10-11 09:48:06 -06:00
Brian
71efb6cf69 clean-up, streamline st_draw_vbo() 2007-10-11 09:11:13 -06:00
Brian
98e638aa8d implement intel_user_buffer_create() 2007-10-11 09:10:43 -06:00
Brian
cdc156d52f Initial support for user-space buffer objects.
Basically, add userBuffer/Data/Size fields to _DriBufferObject, check those
fields in driBOMap/Unmap().
New driGenUserBuffer() function.
2007-10-11 09:10:19 -06:00
Brian
453ac4b1eb Use winsys->user_buffer_create() to wrap user-space vertex arrays and element buffers.
Now client-side vertex arrays and glDrawElements work.
More testing/debug/clean-up to come...
2007-10-10 18:00:12 -06:00
Brian
66ab569590 implement the user_buffer_create() function 2007-10-10 17:58:12 -06:00
Brian
fcdd34de4b Added user_buffer_create() method
This is used to wrap user-space data in a pipe buffer object to allow more
uniform treatment of various things.  For example, wrapping client-side
vertex arrays so they look like VBOs.
2007-10-10 17:57:47 -06:00
Brian
3f226d4baf added SSCALED cases in fetch_attrib4() 2007-10-10 17:50:31 -06:00
Brian
178beffd35 update comments (s/softpipe/gallium/ etc) 2007-10-10 16:51:09 -06:00
Brian
babdd1f651 minor optimization for color/z results 2007-10-10 16:21:28 -06:00
Brian
d37e048cd1 disable some assertions which pop up during window resize, but can be ignored for now 2007-10-10 16:19:49 -06:00
Brian
d0bca086ab fix get_result_vector() since fp output slots are not fixed anymore 2007-10-10 15:45:57 -06:00
Brian
9f8cfa75ca fix softpipe_clear() to handle ps->offset!=0 (such as when rendering to texture and level!=0) 2007-10-10 15:09:57 -06:00
Brian
8b68104b90 free/unreference pipe_surface in get_texel() 2007-10-10 15:05:24 -06:00
Brian
2b31b413f9 use correct mipmap level in st_render_texture() 2007-10-10 14:13:21 -06:00
Brian
e23a7b2ea4 use pipe_region_reference() in softpipe_get_tex_surface() to fix refcount error 2007-10-10 11:40:04 -06:00
Brian
500e3af175 fix width/height padding that caused failed assertion upon window resize 2007-10-10 11:04:48 -06:00
Brian
fa7a589876 Size of input_to_index array should be VERT_ATTRIB_MAX.
This fixes an out of bounds array write that was causing the glsl/bump demo to render incorrectly.
2007-10-10 10:33:38 -06:00
Brian
44200421e8 Merge tgsi_mesa_compile_fp_program() and tgsi_mesa_compile_vp_program() into tgsi_translate_mesa_program(). 2007-10-10 09:44:54 -06:00
Brian
013ce15595 remove unused var 2007-10-10 09:43:37 -06:00
Brian
d4c3f26662 start on a unified vertex/fragment program translation function 2007-10-09 16:56:25 -06:00
Brian
11a46c61e0 Generate DCLs for temporaries. 2007-10-09 16:28:01 -06:00
Brian
578962d624 Finish up decls for packed fragment program outputs. 2007-10-09 16:20:00 -06:00
Brian
bc139a19b0 Pack fragment program outputs to be consistant with vertex programs.
Previously, output[0] was always Z and output[1] was color.  Now output[0]
will be color if Z is not written.
In shade_quad() use the semantic info to determine which quantity is in
which output slot.
2007-10-09 14:55:22 -06:00
Brian
342bc50c3d update some comments 2007-10-09 14:52:26 -06:00
Brian
aec1f8e4f8 More work on flow control for CAL/RET. 2007-10-09 14:40:11 -06:00
Brian
31bd01f93b New ATTRIB interpolation type for vertex program inputs/declarations. 2007-10-09 14:36:14 -06:00
Brian
47ff9428ee Don't emit semantic info for vertex program inputs. 2007-10-09 14:31:45 -06:00
Brian
94490f63c8 Use linked fragment shader inputs (if present) to determine which outputs are needed. 2007-10-09 14:12:26 -06:00
Brian
1a69db9d2d use different temps in exec_tex() for bias 2007-10-03 16:34:04 -06:00
Brian
68c4254d75 updated comments 2007-10-03 16:18:44 -06:00
Brian
635c4c41bd Add outputs_written bitfield to pipe_shader_state, use it to determine if fragment shader writes Z. 2007-10-03 14:43:57 -06:00
Brian
65996f27f4 Move XSTDCALL definition to p_compiler.h 2007-10-03 13:50:12 -06:00
Brian
5356ba250c handle frag progs that write Z 2007-10-03 13:50:11 -06:00
Brian
a9f0330061 basic support for reading GL_DEPTH_COMPONENT 2007-10-03 13:50:11 -06:00
Brian
e6f4af6b23 added s8z24_get_tile() 2007-10-03 13:50:11 -06:00
Brian
76e61556e7 fix eq/neq bugs 2007-10-03 13:50:11 -06:00
Brian
df235f33a6 fix f/u mix-up in micro_trunc() 2007-10-03 13:50:11 -06:00
Brian
1a18ebc6b3 move TEX code into exec_tex() 2007-10-03 13:50:11 -06:00
Michel Dänzer
e9df20c2fa Some minor cleanups. 2007-10-03 20:37:59 +02:00