Commit graph

29002 commits

Author SHA1 Message Date
Marek Olšák
ab85ba30e2 util/blitter: use PIPE_MAX_* limits, and fix a memory leak 2009-12-15 18:00:48 +00:00
Marek Olšák
e1d0f47808 pipe: add PIPE_MAX_TEXTURE_TYPES 2009-12-15 18:00:39 +00:00
Marek Olšák
55753f59ae util: add blitter 2009-12-15 18:00:30 +00:00
Marek Olšák
4c61022b4a util: add a function which converts 2D coordinates to cubemap coordinates
The code was taken over from u_gen_mipmap.
2009-12-15 17:59:54 +00:00
Marek Olšák
dff4c9ed55 util: add new fragment shaders to simple_shaders
New shaders:
* Fragment shader which writes depth sampled from a texture
* Fragment shader which copies COLOR[0] to multiple render targets

Additional improvements:
* The fragment 'tex' shaders now take a sampler type (TGSI_TEXTURE_*)
  so that they can sample from any type of texture, not only from a 2D one.
2009-12-15 17:59:50 +00:00
José Fonseca
3a15c48ece llvmpipe: Fix yet another copynpaste typo in lp_build_log2_approx.
Now fslight looks perfect.
2009-12-15 14:46:43 +00:00
José Fonseca
85c27c3ef7 llvmpipe: Fix lp_build_polynomial comment. 2009-12-15 14:15:52 +00:00
José Fonseca
72c9878069 llvmpipe: Fix typo in lp_build_log constant. 2009-12-15 13:58:53 +00:00
José Fonseca
079b1cf4cf util: Fix unity value for swizzle 1.
It should be 255 for ubytes, and not 1.

Thanks Michal for spotting this.
2009-12-15 13:40:13 +00:00
José Fonseca
846e38f1c3 llvmpipe: Fix bad SI -> FP conversion into lp_build_log2_approx.
It should be a bitcast  as the integer value is actually an encoded FP
already.
2009-12-15 13:15:16 +00:00
José Fonseca
d508bf862b util: Add dl wrappers.
Borrowed from Mesa, slightly changed for more type safety.
2009-12-15 13:15:16 +00:00
Michal Krol
c1efa45e04 tgsi/text: Don't use strncasecmp(), it breaks windows build.
Also, break out of the for-loop when a matching property is found.
2009-12-15 13:54:05 +01:00
Andre Maasikas
f8135d545b r600: use _mesa_insert_instructions to fixup wpos instead of manual ins insert
this keeps branch targets correct.
glsl/trirast works correctly now afaics
2009-12-15 12:08:55 +02:00
Andre Maasikas
dbc374cd30 r600: fix typos for vert-tex
at least i think this is how it was meant to work
2009-12-15 10:26:37 +02:00
Andre Maasikas
bae5e7f213 r600: fix fragment.position
wpos.y seems inferted to what opengl expexts, so calculate correct
value from window dimension and replace references in fragmentprog
with calculated value
2009-12-15 09:46:57 +02:00
Andre Maasikas
10f5cff6ac r600: add support for FRAG_ATTRIB_PNTC 2009-12-15 09:46:49 +02:00
Andre Maasikas
0c046bec8f r600: add DDX DDY opcodes 2009-12-15 09:46:34 +02:00
Matthew Bell
22d2547ad1 mesa: Add missing $(DESTDIR) support to src/gallium/winsys/xlib/Makefile 2009-12-14 21:58:19 -07:00
Vinson Lee
0a8d508854 progs/trivial: Silence compiler warnings. 2009-12-14 18:11:57 -08:00
Vinson Lee
6e5fe39f50 mga: Silence uninitialized variable warnings. 2009-12-14 17:30:15 -08:00
Vinson Lee
b18fa9f448 mach64: Silence uninitialized variable warnings. 2009-12-14 17:20:34 -08:00
Richard Li
18ebcfe393 r600 : add texture support for vertex shader. 2009-12-14 18:08:40 -05:00
Zack Rusin
3ff688ea29 tgsi: add properties and system value register
adds support for properties to all parts of the tgsi framework, plus
introduces a new register which will be used for system generated
values.
2009-12-14 16:35:09 -05:00
Maarten Maathuis
41b52aa336 nouveau: avoid running out of relocs
- Added flush notify functions for NV30 and NV40.
- Flushing mid frame will call flush notify, which will resubmit all
relocs.
- We don't try to recover from reloc failure yet.
2009-12-14 19:31:54 +01:00
Christoph Bumiller
2677f199a5 nv50: be more cautious about using reg_instance
Trying to free part of nv50_pc->reg_instances[] for an
nv50_reg representing an indirect constant resulted in
a segmentation fault.
2009-12-14 18:39:13 +01:00
Roland Scheidegger
a0127b6ced gallium: more work for edgeflags changes
fixes, cleanups, etc.
not working yet
2009-12-14 18:36:33 +01:00
Michal Krol
c14be63c56 tgsi/ureg: Add ureg_DECL_gs_input().
Allows one to declare GS input registers.
2009-12-14 17:29:58 +01:00
Christoph Bumiller
1778ddaf74 nv50: store immediates as uint32
Sometimes we want non-float immediates, hacking them into
floats isn't nice.

Sorry, this should have already been committed before.
2009-12-14 11:12:59 +01:00
Patrice Mandin
d4d880199e nouveau: nv50: Add missing ctor_immd_4u32 function 2009-12-13 20:09:33 +01:00
Maciej Cencora
e76bb2f337 r300: enable accelerated support for glCopyTexImage only under KMS 2009-12-13 17:22:33 +01:00
Maciej Cencora
8403df33e0 r300: fix regression introduced by da73c1ed
The 0 value is correct for I8 format.
2009-12-13 17:20:11 +01:00
Maciej Cencora
9d8501bf27 r300: fix glCopyTexSubImage
Need to properly setup colorbuffer when dst pitch != dst width.
2009-12-13 17:20:11 +01:00
Christoph Bumiller
079b670111 nv50: add proper zslice offset in miptree_surface 2009-12-13 14:39:19 +01:00
Christoph Bumiller
7b5a6fa0c8 nv50: use m2mf z pos instead of calculating offset manually 2009-12-13 14:39:19 +01:00
Christoph Bumiller
44d8c9add2 nv50: add craziness for non-constant TXB and TXL
If lod or bias can be non-constant across a quad of fragments,
we need to execute TEX separately for each value.
Don't ask why.
2009-12-13 14:39:19 +01:00
Vinson Lee
6c9870b54c i810: Silence uninitialized variable warnings in i180tris.c 2009-12-13 00:14:31 -08:00
Vinson Lee
555dc25c4c swrast: Silence uninitialized variable warnings in s_triangle.c 2009-12-12 23:47:32 -08:00
Vinson Lee
aa44efb045 st/mesa: Silence uninitialized variables warnings in st_draw.c. 2009-12-12 22:17:16 -08:00
Vinson Lee
0aef54ba62 swrast: Silence uninitialized variable warnings in ss_tritmp.h. 2009-12-12 22:00:19 -08:00
Vinson Lee
89d85e8170 glut: Prevent potential double free in menuVisualSetup. 2009-12-12 21:46:13 -08:00
Vinson Lee
20590b9733 t_dd_dmatmp.h: Silence unused value warning in render_poly_elts. 2009-12-12 20:20:02 -08:00
Vinson Lee
cd1a09e3bb glsl: Initialize member label of struct slang_operation to NULL. 2009-12-12 18:42:18 -08:00
Vinson Lee
f8d4ac56f7 softpipe: Initialize source in blend_quad. 2009-12-12 18:34:15 -08:00
Vinson Lee
7ea452dd35 t_dd_dmatmp2.h: Silence unused value warnings. 2009-12-12 16:56:07 -08:00
Vinson Lee
75e8dbb235 i915g: Silence unused value warning in intel_drm_get_device_id. 2009-12-12 16:24:25 -08:00
Vinson Lee
9dc018618d t_dd_dmatmp.h: Silence unused value warnings in render_line_loop_elts. 2009-12-12 16:18:08 -08:00
Vinson Lee
af4e4a73f7 t_dd_dmatmp.h: Silence unused value warning in render_tri_fan_elts. 2009-12-12 16:02:09 -08:00
Vinson Lee
588e9f69c4 progs/trivial: Silence compiler warnings in tri-blend-min.c. 2009-12-12 15:47:17 -08:00
Vinson Lee
de9132f274 t_dd_dmatmp.h: Silence unused value warning in render_poly_verts. 2009-12-12 15:27:30 -08:00
Vinson Lee
1e444c9960 swrast: Initialize tex_coords in handle_sample_op. 2009-12-12 15:08:01 -08:00