Commit Graph

29663 Commits

Author SHA1 Message Date
Brian Paul d8331aaf5b svga: make texture_target a ubyte, not a bitfield
gcc won't let us take the address of a bitfield in the svga_fs_key_size()
function.
2010-01-06 09:54:36 -07:00
Keith Whitwell 5ce0380a0f llvmpipe: merge setup and draw vbuf submodules
The setup tiling engine is now plugged directly into the draw module
as a rendering backend.

Removed a couple of layering violations such that the setup code no
longer reaches out into the surrounding llvmpipe state or context.
2010-01-06 16:44:43 +00:00
Brian Paul 439b34c9dd gallium/docs: finish up description of pipe_rasterizer_state fields 2010-01-06 09:42:53 -07:00
Brian Paul 251363e8f1 configs: set INTEL_LIBS, INTEL_CFLAGS, etc 2010-01-06 08:22:11 -07:00
Michal Krol ace932450c util: Fix format descriptor table entries. 2010-01-06 16:11:28 +01:00
Michal Krol 4e014c0a14 pipe_sampler_state::compare_mode is not a boolean enable flag.
It's a 1-bit enum.
2010-01-06 16:11:26 +01:00
Michal Krol 4fd566ea31 util: Handle the remaining format cases in pipe_tile_raw_to_rgba(). 2010-01-06 16:11:24 +01:00
Michal Krol 955f51270b Make sure we use only signed/unsigned ints with bitfields.
Seems to be the only way to stay fully portable.
2010-01-06 16:11:21 +01:00
Brian Paul 1b5476a353 i965g: fix invalid assertion in emit_xpd(), again 2010-01-06 07:18:04 -07:00
José Fonseca e32487b8a1 Merge remote branch 'origin/mesa_7_7_branch'
Conflicts:
	configs/default
	src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c
	src/mesa/main/version.h
2010-01-06 13:52:22 +00:00
José Fonseca aaf7ecfd81 glew: Update to version 1.5.2. 2010-01-06 12:23:37 +00:00
José Fonseca 5b64d94390 pipebuffer: Multi-threading fixes for fencing.
I had this patch on my hard drive for long time. It doesn't fully
address SVGA multi-threading issues, but causes no regressions, so decided
to commit while it still applies cleanly.

Attention: merging this into master will cause issues due to recent
changes in reference counting to fix strict aliasing rules violation.
2010-01-06 12:18:16 +00:00
Luca Barbieri f023473748 gallium: remove PIPE_TEX_FILTER_ANISO
This patch removes PIPE_TEX_FILTER_ANISO.

Anisotropic filtering is enabled if and only if max_anisotropy > 1.0.
Values between 0.0 and 1.0, inclusive, of max_anisotropy are to be
considered equivalent, and meaning to turn off anisotropic filtering.

This approach has the small drawback of eliminating the possibility of
enabling anisotropic filter on either minification or magnification
separately, which Radeon hardware seems to support, is currently
support by Gallium but not exposed to OpenGL.  If this is actually
useful it could be handled by splitting max_anisotropy in two values
and adding an appropriate OpenGL extension.

NOTE: some fiddling & reformatting by keithw to get this patch to
apply.  Hopefully nothing broken in the process.
2010-01-06 10:35:47 +00:00
Brian Paul a6975507ad docs: added more GL3 items 2010-01-05 21:25:56 -07:00
Brian Paul d4f2d6556e mesa: added GL_MAJOR_VERSION and GL_MINOR_VERSION queries
New in GL 3.0.
2010-01-05 21:24:48 -07:00
Brian Paul 3510a1b0c5 mesa: call _mesa_compute_version() to set context's version info 2010-01-05 21:23:59 -07:00
Brian Paul 29f50f61ea mesa: added version.c to build 2010-01-05 21:23:16 -07:00
Brian Paul e0b9e33afb mesa: added _mesa_compute_version() in new version.c file 2010-01-05 21:23:01 -07:00
Brian Paul e16fd07225 mesa: added version fields to GLcontext 2010-01-05 21:17:55 -07:00
Brian Paul 88330c6438 gallium/util: replace 8 with PIPE_MAX_COLOR_BUFS 2010-01-05 17:07:44 -07:00
Brian Paul 2fbc3931fc gallium/util: comments and whitespace fixes 2010-01-05 16:55:35 -07:00
Brian Paul 9089436930 docs: added link to wiki page about missing Mesa features 2010-01-05 16:03:11 -07:00
Brian Paul 15b05c54b7 i965g: fix invalid assertion in emit_xpd()
Invalid assertion found by Roel Kluin <roel.kluin@gmail.com>
2010-01-05 15:54:50 -07:00
Brian Paul e555146fa3 i965: fix invalid assertion in emit_xpd()
Invalid assertion found by Roel Kluin <roel.kluin@gmail.com>
2010-01-05 15:53:05 -07:00
Roel Kluin 766f3ccbda tdfx: condition always evaluates to false in SetupDoubleTexEnvVoodoo3()
This can never be true.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
2010-01-05 14:42:28 -07:00
Eric Anholt 5a7c2a99a6 i965: Fix build after blind merge of mesa 7.7 by Brian. 2010-01-05 11:09:21 -08:00
Brian Paul 9f544394c1 st/mesa: fix broken translation of negative register indexes
A src register's index can be negative if we're doing indirect
addressing into the constant buffer.  Ex: MOV OUT[1], CONST[ADDR[0].x-3]

This fixes the piglit vp-arl-neg-array.vpfp test.

Before this change we were going out of bounds of the t->constants[]
array and getting garbage that later triggered an assertion.
2010-01-05 11:44:19 -07:00
Brian Paul 487a14b476 ARB prog parser: regenerated parser file 2010-01-05 11:44:19 -07:00
Brian Paul f0f68b1e4c ARB prog parser: fix parameter binding type
References to program local and enviroment parameters are put into the
unified program parameters list as PROGRAM_STATE_VAR entries which point
into the local or environment arrays.  So the param_binding_type field
should be PROGRAM_STATE_VAR.

This fixes the piglit vpfp-generic vp-arl-env-array.vpfp and
vp-arl-local-array.vpfp test failures.
2010-01-05 11:44:19 -07:00
Brian Paul e3514b7338 ARB prog parser: regenerated parser files 2010-01-05 11:44:19 -07:00
Brian Paul 7c6ae4c6c8 ARB prog parser: add allowSwizzle param to initialize_symbol_from_const()
We need to disable constant consolidation when building an array of
constants which might be indexed indirectly.

Fixes regression in piglit vpfp-generic vp-arl-constant-array.vpfp
test caused by earlier constant consolidation patch.
2010-01-05 11:44:19 -07:00
Brian Paul 37f6929d29 mesa: whitespace changes and comments 2010-01-05 11:44:19 -07:00
Brian Paul f27e39aa4e mesa: change constant search behaviour in _mesa_add_unnamed_constant()
Only search for an existing, matching constant if swizzleOut is non-null.
We need to be able to disable constant consolidation when building an
array of constants which will be indexed indirectly.
2010-01-05 11:44:19 -07:00
Maarten Maathuis c77ade8fed nouveau: rewrite nouveau_stateobj to use BEGIN_RING properly
- The previous solution was hacky and didn't do subchannel autobinding.
- The beheaviour should match what libdrm_nouveau does closely.
- The solution remains statically sized, but when debugging is on it will check
for abuse.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
2010-01-05 19:13:34 +01:00
Marcin Slusarz 29d2ab37e6 nouveau: kill nouveau_push.h and use libdrm versions of BEGIN_RINGs, etc 2010-01-05 19:13:34 +01:00
Maarten Maathuis c306ef5e81 nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped
- This avoids problematic "reloc'ed while mapped" messages and
some associated corruption as well.

Signed-off-by: Maarten Maathuis <madman2003@gmail.com>
2010-01-05 19:13:34 +01:00
José Fonseca 38d8b18003 svga: Remove stale references to delete shader results.
To ensure that a new result that happens to have the same address
of the old one will be detected as a change.
2010-01-05 17:56:26 +00:00
José Fonseca 8ebef37c7b svga: Rebind shaders when tokens change.
Even shader ID doesn't change. Otherwise the token change is not
effective.

This reverts regression from commit
cdb445f3a9. Regression could be seen in
Quake3's loading screen -- the upper right corner of the screen would
be black.
2010-01-05 17:32:53 +00:00
Corbin Simpson 3e18bad36d Merge branch 'gallium-docs' 2010-01-05 08:37:49 -08:00
Chia-I Wu 897cb8950a egl: Fix breakage from -fvisibility=hidden.
Mark EGL API and driver functions as PUBLIC.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2010-01-05 11:23:52 -05:00
Corbin Simpson 467cccf0a7 docs: Don't check in generated docs.
Per ML discussion.
2010-01-05 08:22:52 -08:00
Corbin Simpson acb8073d07 docs: Stub out list of modules in core distribution of G3D. 2010-01-05 08:22:18 -08:00
Brian Paul ef1b942691 st/mesa: added PROGRAM_LOCAL_PARAM case in src_register()
Fixes piglit vpfp-generic arl.vpfp failure when using gallium.
2010-01-05 09:14:50 -07:00
Kristian Høgsberg ae44b92f61 Merge branch 'remove-intel-dri1'
* remove-intel-dri1:
  intel: intelScreenContext() is no longer used
  intel: Remove remaining dri2.enabled tests
  intel: Drop more cliprect bookkeeping
  intel: Remove struct intel_framebuffer
  intel: Remove client-side vblank code
  intel: Drop intelWindowMoved()
  intel: Drop batchbuffer cliprect_mode tracking
  intel: Drop DRI1 static regions
  intel: Use depth buffer from ctx.DrawBuffer in copypix_src_region()
  intel: Drop LOCK/UNLOCK_HARDWARE()
  intel: Drop DRI1 SwapBuffer implementation
  intel: Drop DRI1 CopySubBuffer implementation
  intel: Drop DRI1 support
  Push __driDriverExtensions out of dri_util.c and into the drivers
  Remove leftover __DRI{screen,drawable,context}Private references
  Check for libdrm_$chipset.pc when needed
2010-01-05 10:31:11 -05:00
Brian Paul bd96b51303 mesa: bump version to 7.7.1-DEVEL 2010-01-05 07:59:29 -07:00
Keith Whitwell c727fa6dbf Merge commit 'origin/gallium-draw-retval'
Conflicts:
	src/gallium/drivers/identity/id_context.c
2010-01-05 14:13:40 +00:00
Andre Maasikas c91ceeec32 r600: adjust after radeon mipmap changes in 7118db8700
R600_OUT_BATCH_RELOC doesn't really use offset so set it
in TEX_RESOURCE2
+ typo fix
2010-01-05 15:36:32 +02:00
Andre Maasikas 750c1e7bb4 r600: support depth compare functions & shadow_ambient 2010-01-05 13:48:04 +02:00
Michal Krol 1f9aa38f4e tgsi: Simplify implementation of few interpreter's instructions. 2010-01-05 11:00:07 +01:00
Michal Krol 55b5c8816e tgsi: Use FREE() to release MALLOC-ed() memories in sanity. 2010-01-05 09:28:41 +01:00