José Fonseca [Wed, 14 Jan 2009 12:56:12 +0000 (12:56 +0000)]
stw: Dispatch to our stw_winsys::flush_front_buffer
pipe_winsys::flush_front_buffer should die someday, but this is good enough
for now.
Alan Hourihane [Thu, 15 Jan 2009 14:02:09 +0000 (14:02 +0000)]
mesa: tweak to formatting
Alan Hourihane [Thu, 15 Jan 2009 11:54:41 +0000 (11:54 +0000)]
mesa: small cleanup
Alan Hourihane [Thu, 15 Jan 2009 11:53:59 +0000 (11:53 +0000)]
mesa: revert partial commit for 0x0 render targets
Alan Hourihane [Thu, 15 Jan 2009 11:51:39 +0000 (11:51 +0000)]
mesa: check frambuffer complete status before rendering
Jakob Bornecrantz [Thu, 15 Jan 2009 11:28:23 +0000 (12:28 +0100)]
mesa: Fix merge conflicts
Alan Hourihane [Wed, 14 Jan 2009 23:33:41 +0000 (23:33 +0000)]
Merge commit 'origin/master' into gallium-0.2
Conflicts:
docs/install.html
docs/relnotes-7.3.html
src/mesa/shader/slang/slang_codegen.c
src/mesa/shader/slang/slang_compile.c
src/mesa/shader/slang/slang_emit.c
src/mesa/shader/slang/slang_preprocess.c
src/mesa/shader/slang/slang_preprocess.h
Ian Romanick [Wed, 14 Jan 2009 20:46:06 +0000 (12:46 -0800)]
intel: SW fallback maps texture images, not texture coordinates
Brian Paul [Wed, 14 Jan 2009 19:16:00 +0000 (12:16 -0700)]
glsl: propagate pragma info down into compiler from preprocessor
Brian Paul [Wed, 14 Jan 2009 19:07:25 +0000 (12:07 -0700)]
windows: remove reference to swizzle.c file
Brian Paul [Wed, 14 Jan 2009 18:58:45 +0000 (11:58 -0700)]
glsl: simplify IR storage for samplers
Don't overload the Size field with the texture target, to avoid confusion.
Brian Paul [Wed, 14 Jan 2009 18:50:32 +0000 (11:50 -0700)]
mesa: fix incorrect transformation of GL_SPOT_DIRECTION
This was changed between GL 1.0 and 1.1. Mesa still had the 1.0 behaviour.
Ian Romanick [Wed, 14 Jan 2009 18:05:40 +0000 (10:05 -0800)]
Treat image units and coordinate units differently.
Previously MaxTextureUnits was used to validate both texture image
units and texture coordinate units in fragment programs. Instead, use
MaxTextureCoordUnits for texture coordinate units and
MaxTextureImageUnits for texture image units.
Fixes bugzilla #19468.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Alan Hourihane [Wed, 14 Jan 2009 17:01:16 +0000 (17:01 +0000)]
mesa: add new samplers_array test
Alan Hourihane [Wed, 14 Jan 2009 16:53:22 +0000 (16:53 +0000)]
mesa: handle some cases of 0x0 render targets
Alan Hourihane [Wed, 14 Jan 2009 16:32:44 +0000 (16:32 +0000)]
glsl: fix regression from sampler arrays commit
Alan Hourihane [Wed, 14 Jan 2009 16:32:44 +0000 (16:32 +0000)]
glsl: fix regression from sampler arrays commit
Brian Paul [Wed, 14 Jan 2009 15:33:45 +0000 (08:33 -0700)]
i965: indentation fixes
Brian Paul [Tue, 13 Jan 2009 17:40:19 +0000 (10:40 -0700)]
i965: allow larger AA points on fallback path
Brian Paul [Tue, 13 Jan 2009 17:38:15 +0000 (10:38 -0700)]
i965: fix indentation
Brian Paul [Tue, 13 Jan 2009 17:26:25 +0000 (10:26 -0700)]
i965: comment for emit_kil()
Brian Paul [Tue, 13 Jan 2009 17:20:15 +0000 (10:20 -0700)]
mesa: put _NV suffix on a few opcodes
Brian Paul [Tue, 13 Jan 2009 17:09:02 +0000 (10:09 -0700)]
i965: fix indentation
Alan Hourihane [Wed, 14 Jan 2009 11:34:29 +0000 (11:34 +0000)]
egl: fix makecurrent with null drawable/context
José Fonseca [Wed, 14 Jan 2009 11:39:12 +0000 (11:39 +0000)]
gallium: Disable memory debugging for Windows OGL.
Unfortunately both Mesa and Gallium use the same defines for memory
allocation (MALLOC, FREE, etc), and worse, some times memory is allocated
with one set and freed with the other set, causing the homegrown memory
debugger to trip on itself.
In the future mesa and gallium should use different names, but for now,
memory debugging on Windows will have to be carried with different tools..
José Fonseca [Wed, 14 Jan 2009 11:36:14 +0000 (11:36 +0000)]
progs: List tri-clear.
José Fonseca [Wed, 14 Jan 2009 11:36:02 +0000 (11:36 +0000)]
scons: Use .a suffix for MinGW.
This allows to build MinGW and MSVC within the same dir.
Jakob Bornecrantz [Mon, 5 Jan 2009 10:44:56 +0000 (11:44 +0100)]
intel: Add a none working GEM backend for intel
Jonathan Adamczewski [Wed, 14 Jan 2009 01:37:46 +0000 (12:37 +1100)]
cell: Specify constant as float for CEILF().
Without the f, the constant is treated as a double, resulting in
slower arithmetic and libgcc conversion calls each time CEILF()
is used.
Xiang, Haihao [Wed, 14 Jan 2009 01:32:55 +0000 (09:32 +0800)]
intel: bump driver date
Alan Hourihane [Tue, 13 Jan 2009 23:59:18 +0000 (23:59 +0000)]
glsl: fix a comment typo
Alan Hourihane [Tue, 13 Jan 2009 23:54:46 +0000 (23:54 +0000)]
glsl: support sampler arrays.
Alan Hourihane [Tue, 13 Jan 2009 23:59:18 +0000 (23:59 +0000)]
glsl: fix a comment typo
Alan Hourihane [Tue, 13 Jan 2009 23:54:46 +0000 (23:54 +0000)]
glsl: support sampler arrays.
Brian Paul [Tue, 13 Jan 2009 22:09:13 +0000 (15:09 -0700)]
docs: #pragma now handled
Brian Paul [Tue, 13 Jan 2009 22:06:52 +0000 (15:06 -0700)]
glsl: add preprocessor support for #pragma
Two forms are supported:
Pragmas are silently ignored at this time.
Ian Romanick [Sat, 10 Jan 2009 02:28:38 +0000 (18:28 -0800)]
Add language about implicit flush and command completion
Copied language from the glXSwapBuffers manual page about the implicit
glFlush and expected command completion. This just codifies what
people already expect from glXCopySubBufferMESA. The intention of
this command is to work like glXSwapBuffers but on a sub-rectangle of
the drawable.
Acked-by: Brian Paul <brianp@vmware.com>
Brian Paul [Tue, 13 Jan 2009 16:03:43 +0000 (09:03 -0700)]
docs: fixes since 7.3-rc1
Karl Schultz [Tue, 13 Jan 2009 16:01:34 +0000 (09:01 -0700)]
windows: try to create a context in wglCreateLayerContext()
Ben Skeggs [Tue, 13 Jan 2009 03:25:14 +0000 (13:25 +1000)]
nv50: fix progs/tests/manytex
Previously all squares were textured with the same texture.. not quite what
the demo was supposed to look like!
Ben Skeggs [Tue, 13 Jan 2009 03:19:22 +0000 (13:19 +1000)]
nv50: get glxgears showing all 3 gears instead of 1!!
This fixes a lot of other things where not all the geometry got drawn
also.
Ben Skeggs [Tue, 13 Jan 2009 02:49:53 +0000 (12:49 +1000)]
nv50: change some magic reg, makes more things work
No real idea what this does.. but a lot of things that misrendered and
made the GPU throw a DATA_ERROR now work.. I'm wondering what side-effects
we'll see from this :)
Ben Skeggs [Tue, 13 Jan 2009 01:44:30 +0000 (11:44 +1000)]
nv50: add DXTn formats
Ben Skeggs [Tue, 13 Jan 2009 00:58:17 +0000 (10:58 +1000)]
nv50: shadow mapping
Ben Skeggs [Tue, 13 Jan 2009 00:55:06 +0000 (10:55 +1000)]
nv50: aniso
Ben Skeggs [Tue, 13 Jan 2009 00:44:52 +0000 (10:44 +1000)]
nv50: occlusion queries
Not quite working, but the general idea is right I think.
Ben Skeggs [Mon, 12 Jan 2009 23:56:40 +0000 (09:56 +1000)]
nv50: implement KIL enough for progs/fp/kil to work
Jonathan Adamczewski [Tue, 13 Jan 2009 03:02:18 +0000 (14:02 +1100)]
cell: Add missing suffix to SHUFFLE macro
Jonathan Adamczewski [Mon, 12 Jan 2009 23:24:49 +0000 (16:24 -0700)]
cell: allocate batch buffers w/ 16-byte alignment
Replace cell_batch{align,alloc)*() with cell_batch_alloc16(), allocating
multiples of 16 bytes that are 16 byte aligned.
Opcodes are stored in preferred slot of SPU machine word.
Various structures are explicitly padded to 16 byte multiples.
Added STATIC_ASSERT().
Brian Paul [Mon, 12 Jan 2009 22:47:36 +0000 (15:47 -0700)]
i965: fix glDrawPixels Z coordinate in intel_texture_drawpixels().
As for glBitmap, it needs to be an NDC coord in [-1,1].
Brian Paul [Mon, 12 Jan 2009 22:43:54 +0000 (15:43 -0700)]
i965: fix broken glBitmap + depth test
When we use the do_blit_bitmap() function, it seems the fragment Z is always
1.0. If depth testing is on, that means that bitmap fragments are often
occluded by other rendering. So, the bitmap doesn't appear even if
rasterpos.Z==0.
The fix is to use the intel_texture_bitmap() path when depth testing is on.
Also, fix the incorrect Z coordinate. It needs to be an NDC value in [-1,1].
Brian Paul [Fri, 9 Jan 2009 22:52:04 +0000 (15:52 -0700)]
i965: fix broken ARB fp fog options
Just call _mesa_append_fog_code() if the fragment program's FogOption is
not GL_NONE.
This allows us to remove some unnecessary i965 fog code.
Note, the arbfplight.c demo can be used to test this (see DO_FRAGMENT_FOG).
Dan Nicholson [Mon, 12 Jan 2009 19:10:31 +0000 (11:10 -0800)]
autoconf: Only _GNU_SOURCE feature test macro needed on gnu systems
According to feature_test_macros(7), _GNU_SOURCE encompasses all the
other feature macros we were setting, so we can just dispose of them.
Julien Cristau [Mon, 12 Jan 2009 15:04:32 +0000 (16:04 +0100)]
mesa: match against *-gnu* instead of *-gnu in configure.ac
Fixes build on arm-linux-gnueabi
Thomas Henn [Mon, 12 Jan 2009 17:56:42 +0000 (10:56 -0700)]
windows: updated VC8 project files
Brian Paul [Mon, 12 Jan 2009 15:52:54 +0000 (08:52 -0700)]
glsl: better fix for for-loop scope issue (commit
6333005f7aea3e5d1d86a5c47b3fa2a1ed2f3ff0)
Brian Paul [Mon, 12 Jan 2009 15:35:53 +0000 (08:35 -0700)]
windows: added new sources for 7.3 (may be more, needs testing)
Brian Paul [Mon, 12 Jan 2009 14:55:14 +0000 (07:55 -0700)]
mesa: add osmesa.pc.in to tarball list
Michel Dänzer [Mon, 12 Jan 2009 14:05:05 +0000 (15:05 +0100)]
gallivm: Make sure the bitcode buffer is followed by a 0 byte.
May fail to parse otherwise.
Michel Dänzer [Mon, 12 Jan 2009 11:39:31 +0000 (12:39 +0100)]
gallivm: Print error message from ParseBitcodeFile() in case it fails.
Michel Dänzer [Mon, 12 Jan 2009 11:37:13 +0000 (12:37 +0100)]
gallivm: Explicitly specify the LLVM components we need.
Michel Dänzer [Mon, 12 Jan 2009 11:34:27 +0000 (12:34 +0100)]
gallivm: Adapt to header file move in LLVM 2.4.
Ben Skeggs [Mon, 12 Jan 2009 06:47:17 +0000 (16:47 +1000)]
nv50: make rtt work again
Ben Skeggs [Mon, 12 Jan 2009 06:32:49 +0000 (16:32 +1000)]
nv50: fix handling of depth textures
Ben Skeggs [Mon, 12 Jan 2009 06:24:42 +0000 (16:24 +1000)]
nv50: another typo..
Ben Skeggs [Mon, 12 Jan 2009 06:15:58 +0000 (16:15 +1000)]
nouveau: fix warning
Ben Skeggs [Mon, 12 Jan 2009 05:42:20 +0000 (15:42 +1000)]
nv50: fix assertion failure
Ben Skeggs [Mon, 12 Jan 2009 05:19:35 +0000 (15:19 +1000)]
nv50: remove previous hack to manage tiled surfaces
Ben Skeggs [Mon, 12 Jan 2009 05:06:15 +0000 (15:06 +1000)]
nv50: fix a typo and a thinko
Ben Skeggs [Mon, 12 Jan 2009 04:27:51 +0000 (14:27 +1000)]
nv50: enable npot textures
Ben Skeggs [Mon, 12 Jan 2009 04:26:15 +0000 (14:26 +1000)]
nv50: disable shader debug
Ben Skeggs [Mon, 12 Jan 2009 04:10:24 +0000 (14:10 +1000)]
nv50: any cpu access to a texture is done on its backing images
Still a little dodgy:
- RTT will hit an assertion (hopefully!) and fail
- 3D textures with depth >= 32 will cause bad things to happen
Ben Skeggs [Mon, 12 Jan 2009 03:42:19 +0000 (13:42 +1000)]
nv50: create buffers for each image that makes up a texture
Ben Skeggs [Mon, 12 Jan 2009 03:27:13 +0000 (13:27 +1000)]
nouveau: return buffer map to something sane.
Sorry, but no, we're not doing this.. Correctness always takes precedence
over speed. Implement this higher up where you know it's safe to do so,
and doesn't break other things in the process.
Ben Skeggs [Mon, 12 Jan 2009 03:25:28 +0000 (13:25 +1000)]
nouveau: use usage, not uninitialised flags value...
Matthieu Herrb [Sun, 11 Jan 2009 23:56:34 +0000 (16:56 -0700)]
Build fixes for gcc 2.95
Matthieu Herrb [Sat, 11 Oct 2008 06:51:43 +0000 (08:51 +0200)]
Big endian fixes.
Matthieu Herrb [Sun, 21 Sep 2008 08:56:57 +0000 (10:56 +0200)]
build fix on big endian OpenBSD architectures.
Matthieu Herrb [Sun, 14 Sep 2008 18:58:29 +0000 (20:58 +0200)]
replace nearbyint() by rint() for now.
Owain G. Ainsworth [Sun, 11 Jan 2009 20:40:07 +0000 (20:40 +0000)]
Fix build with GCC 2.95.
Matthieu Herrb [Sat, 13 Sep 2008 17:07:28 +0000 (19:07 +0200)]
__builtin_expect is a gcc 3.x feature. define it out for gcc 2.95.
Patch suggested by miod@. Thanks.
Brian Paul [Sun, 11 Jan 2009 22:28:38 +0000 (15:28 -0700)]
cell: optimize unpack_colors() function, saving 12 cycles
Brian Paul [Sun, 11 Jan 2009 22:18:28 +0000 (15:18 -0700)]
cell: move color unpacking code into separate function
Brian Paul [Sun, 11 Jan 2009 22:11:00 +0000 (15:11 -0700)]
cell: re-order the z/stencil fetch/extract/convert instructions for better perf
The new instruction order is 10 cycles faster.
Brian Paul [Sun, 11 Jan 2009 21:22:00 +0000 (14:22 -0700)]
cell: datatype clean-ups in SPE rtasm
Brian Paul [Sun, 11 Jan 2009 21:06:39 +0000 (14:06 -0700)]
cell: simplify the 'optional register' code
Brian Paul [Sun, 11 Jan 2009 20:52:58 +0000 (13:52 -0700)]
cell: asst datatype clean-ups
Brian Paul [Sun, 11 Jan 2009 20:40:28 +0000 (13:40 -0700)]
cell: move depth/stencil code into separate function
Brian Paul [Sun, 11 Jan 2009 20:23:44 +0000 (13:23 -0700)]
cell: clean-up, re-indent, comments
Brian [Sat, 10 Jan 2009 23:32:32 +0000 (16:32 -0700)]
mesa: require libdrm 2.4.3 in configure.ac
Brian Paul [Sat, 10 Jan 2009 05:32:11 +0000 (22:32 -0700)]
cell: use tgsi_dump_instruction() instead of spe_comment()
Brian Paul [Sat, 10 Jan 2009 05:03:48 +0000 (22:03 -0700)]
gallium: use tgsi_dump_instruction() instead of ppc_comment()
Brian Paul [Sat, 10 Jan 2009 04:51:22 +0000 (21:51 -0700)]
gallium: remove unused struct type
Brian Paul [Sat, 10 Jan 2009 04:48:54 +0000 (21:48 -0700)]
gallium: fix register clobber bug in TGSI->PPC codegen
When negating a src vector that's stored in a altivec register, need to put
negated value into a new register so we don't upset the original value.
This solves the dark colors in the mandelbrot GLSL demo.
Also, use new predicate functions to check if a TGSI temp is stored in
an altivec register.
Brian Paul [Sat, 10 Jan 2009 04:46:08 +0000 (21:46 -0700)]
gallium: emit comments in TGSI->PPC codegen
Brian Paul [Sat, 10 Jan 2009 04:42:58 +0000 (21:42 -0700)]
gallium: code to dump/debug PPC code (disabled)
Brian Paul [Sat, 10 Jan 2009 04:42:17 +0000 (21:42 -0700)]
gallium: added comment/annotation support to PPC rtasm
Brian Paul [Sat, 10 Jan 2009 04:00:15 +0000 (21:00 -0700)]
cell: added rule to produce .s assembly files
Brian Paul [Sat, 10 Jan 2009 03:57:14 +0000 (20:57 -0700)]
gallium: s/false/FALSE/
Brian Paul [Sat, 10 Jan 2009 19:21:37 +0000 (12:21 -0700)]
mesa: omit old headers from tarball