Commit Graph

25002 Commits

Author SHA1 Message Date
Brian Paul 08ecd863ee progs/glsl: set generic vertex attribute values 2009-08-13 17:03:56 -06:00
Brian Paul 62d1132160 progs/glsl: add type field to shtest config files
Plus, texture loading.
2009-08-13 17:03:56 -06:00
Brian Paul 823703418e mesa: added *.shtest files to demo tarball 2009-08-13 17:03:56 -06:00
Dave Airlie 25cd4dc1d6 glsl/tests: skinning.o
worst Makefile ever. not sure what is going on here, hopefully
this fixes tinderbox
2009-08-14 08:35:49 +10:00
Alex Deucher 9d96095c1e r600: move non-surface related cb state to general state 2009-08-13 17:55:42 -04:00
Alex Deucher 083b04e809 r600: move non-surface related depth state to general state 2009-08-13 17:43:03 -04:00
RALOVICH, Kristóf 0896268b97 glx: indent -br -i3 -npcs --no-tabs
Some manual intervention applied since XEXT_* and other macro magic
fooled indent. Auto generated files were also skipped.
2009-08-13 15:13:21 -06:00
Brian Paul 741869d73a progs/util: ignore pre-defined uniforms in SetUniformValues() 2009-08-13 12:53:20 -06:00
Brian Paul ae99e4c67e progs/glsl: new shtest program, a simple shader test harness app
This commit includes some sample config files (*.shtest)
2009-08-13 12:52:13 -06:00
Brian Paul 03ba461c19 glsl: fix incorrect attribute size 2009-08-13 12:50:57 -06:00
Brian Paul 53dfd5d870 tnl: if NAN_CHECK is enabled, also assert that pos.x != 0 2009-08-13 12:50:57 -06:00
Brian Paul c10002361c mesa: s/assert/ASSERT/ in _mesa_reference_texobj()
We want the no-op ASSERT for non-debug builds.
2009-08-13 12:50:57 -06:00
Brian Paul 8a9795e5c6 mesa: rework error check in glGetTexLevelParameter(), remove tex_image_dimensions() 2009-08-13 12:50:57 -06:00
Brian Paul 423a53f635 mesa: if maxLevels==0, target is invalid 2009-08-13 12:50:56 -06:00
Brian Paul fe988d786c mesa: add extension checks in _mesa_max_texture_levels() 2009-08-13 12:50:56 -06:00
Brian Paul 47a385b43b mesa: minor clean-ups in bumpmap functions 2009-08-13 12:50:56 -06:00
Brian Paul 6aa7a03d85 mesa: use _mesa_get_current_tex_unit() in more places 2009-08-13 12:50:56 -06:00
Brian Paul 73b150c816 mesa: refactor: move _mesa_is_color/depth/stencil_format() helpers to image.c 2009-08-13 12:50:56 -06:00
Brian Paul ba2a55ccd6 mesa: move _mesa_Get[Compressed]TexImage() to texgetimage.c
All the glGetTexImage code is in one file now.
2009-08-13 12:50:56 -06:00
Brian Paul b9f67df6e7 mesa: short-circuit no-change in _mesa_DepthRange() 2009-08-13 12:25:53 -06:00
Michel Dänzer ace98f09e6 st/dri: Add support for GLX_EXT_texture_from_pixmap with direct rendering. 2009-08-13 20:24:09 +02:00
Michel Dänzer 7c08614b32 gallium/drm: Handle circular dependencies in the auxiliary libraries with make. 2009-08-13 18:46:53 +02:00
Michel Dänzer 7ef8c79a8c st/xorg: Fix DRI2 CopyRegion hook.
Use GC CopyArea op for proper translation and clipping, and throttle full
buffer swaps / frontbuffer flushes.
2009-08-13 18:46:53 +02:00
Keith Whitwell f2fcd5822a tgsi: add simple facility for releasing and reusing temporaries 2009-08-13 17:32:25 +01:00
Keith Whitwell b56d2ba7b2 tgsi: rename ureg src/dest converters
Also fix a typo in ureg_src().
2009-08-13 17:32:25 +01:00
José Fonseca 5c5364a0f6 draw: Remove unused variable. 2009-08-13 16:33:50 +01:00
José Fonseca 7b39194e2d scons: Handle Circular dependencies in the libraries. 2009-08-13 16:32:51 +01:00
Keith Whitwell bf57eda0ec Merge branch 'mesa_7_5_branch' 2009-08-13 15:57:23 +01:00
Keith Whitwell 1ce3f5a806 draw: cope with more primitives in draw_pipeline_run
This previously was used only for decomposed (POINT/LINE/TRI) primitives,
but for some time a full range of primitives could end up in here.

Fixes trivial/lineloop-clip on softpipe, among others.
(cherry picked from commit 87cd8a3b8a2407b30916be418ff2f95dfea5d2ad)
2009-08-13 15:56:17 +01:00
Keith Whitwell 78918c8760 tgsi: turn off debugging 2009-08-13 14:28:01 +01:00
Keith Whitwell 749e52049d tgsi: use REALLOC for growing token pool 2009-08-13 14:27:42 +01:00
Keith Whitwell 120e76866b util: silence warnings for third REALLOC argument
Our fallback realloc path requires an old_size argument, but the posix
varient doesn't need this.  Add some code to avoid gcc unused variable
warnings for this extra argument.
2009-08-13 14:26:50 +01:00
Keith Whitwell b1d82f1f19 util: remove unneeded includes 2009-08-13 13:43:25 +01:00
Keith Whitwell 002c76cfef util: convert u_simple_shaders to use tgsi_ureg
Much nicer now.
2009-08-13 13:02:59 +01:00
Keith Whitwell 8a7d1e7b76 tgsi: add tgsi_ureg, a simplified tgsi shader builder
This is modelled on the nice & easy-to-use facilities we had
for building shaders in mesa, eg. in texenvprogram.c and friends.

Key points include pass-by-value register structs that can be manipulated
in a functional style, eg:

   negate(swizzle(reg, X,X,X,X))

and per-opcode instruction functions, eg:

   emit_MOV( p, writemask(dst, 0x1), negate(src));

and similar.

Additionally, the interface allows mixed emit of instructions and decls,
which are sorted out internally to obey TGSI ordering.

Immediates may be emitted at any time and are scanned against existing
immediates to try and reduce redundancy.

Not all TGSI functionality is accessible through this interface, but
most or all of what mesa uses should be.
2009-08-13 13:02:47 +01:00
Xiang, Haihao 1f40ffca63 i965: fix cube map on IGDNG 2009-08-13 18:42:52 +08:00
Brian Paul 4ce73ad92c glsl: remove duplicate frag input entry 2009-08-12 20:37:34 -06:00
Brian Paul f3b215cba2 Merge branch 'new-frag-attribs'
This branch introduces new FRAG_ATTRIB_FACE and FRAG_ATTRIB_PNTC fragment
program inputs for GLSL gl_FrontFacing and gl_PointCoord.  Before, these
attributes were packed with the FOG attribute.  That made things
complicated elsewhere.
2009-08-12 20:32:41 -06:00
Brian Paul fdfb0d4b0e progs/glsl: change uniform_info::type field to use GLSL vector types 2009-08-12 17:28:45 -06:00
Brian Paul af3d7f6889 demos: call SetUniformValues() 2009-08-12 17:28:45 -06:00
Brian Paul f95b82b486 mesa: const qualifiers 2009-08-12 17:28:45 -06:00
Brian Paul bd4c6a2e50 vbo: use _mesa_is_bufferobj() 2009-08-12 17:28:45 -06:00
Brian Paul 684049d97d demos: rename InitUniforms() to SetUniformValues()
And call new PrintUniforms() in demos.
2009-08-12 17:28:45 -06:00
Brian Paul 378bff0edd progs/util: added more shader utility functions 2009-08-12 17:28:45 -06:00
Brian Paul 434ec3ada8 mesa: use _mesa_is_bufferobj() 2009-08-12 17:28:45 -06:00
Brian Paul 604031563c mesa: use _mesa_is_bufferobj() 2009-08-12 17:28:45 -06:00
Brian Paul abbf83551f mesa: new _mesa_is_bufferobj() function
Tests if the given buffer object is a user-created, non-default buffer object.
Use this instead of testing bufferobj->Name != 0.
2009-08-12 17:28:45 -06:00
Eric Anholt d64649a316 i965: Make the cube mapping RCP use a writemask.
Fixes cube mapping since the scalar changes.
2009-08-12 13:50:09 -07:00
Eric Anholt 5faa0dc591 i965: Allocate destination registers for GLSL TEX instructions contiguously.
This matches brw_wm_pass*.c behavior, and fixes the norsetto shadow demo.

Bug #19489
2009-08-12 13:18:47 -07:00
Eric Anholt 63fa5fd319 i965: drop dead scalar handling in GLSL. 2009-08-12 13:05:59 -07:00