Brian Paul
3bee7610be
progs/tests: added new blitfb.c test
...
Tests glBlitFramebuffer() between two texture/renderbuffer surfaces.
In particular, blit from level[1] of a cube map face to a 2D texture.
Used to find/fix bug in intel do_copy_texsubimage().
See commit aef1ab1073f3e30d699b99dae17518ed48b57c72
2009-10-27 17:00:31 -06:00
Brian Paul
3e45788d5d
intel: fix src offset bug in do_copy_texsubimage()
...
Use src->draw_offset intead of zero. Zero usually worked, except when
the src renderbuffer is actually a texture mipmap level higher than zero.
Fixes progs/test/blitfb.c test.
2009-10-27 17:00:31 -06:00
Brian Paul
4c2a7bc438
glsl: fix memory leak
...
A slightly modified version of a patch from Vinson Lee.
2009-10-27 17:00:30 -06:00
Eric Anholt
4f9f5a7840
i915: Fix driver for the miptree x/y offset changes.
...
Bug #24734 .
2009-10-27 17:00:30 -06:00
Brian Paul
e9b17d6477
i965: be clear that the Fallback field is a boolean, not a bitfield
2009-10-27 16:59:44 -06:00
Brian Paul
755161b888
Revert "i965: fix hacked Fallback usage in brw_prepare_vertices()"
...
This reverts commit 8810b8f671 .
It turns out the i965 driver uses the intel->Fallback field as a boolean,
not as a bitmask. The intelFallback() function is a no-op in the i965
driver. It would have been nice if there were some comments about this.
I'll fix that next...
2009-10-27 16:59:44 -06:00
Vinson Lee
b7ab7d3627
draw: Fix memory leak.
...
This would only be hit if we got and invalid index_size.
2009-10-27 16:59:44 -06:00
Brian Paul
b73c4ad98b
docs: document Intel glBitmap fixes
2009-10-27 16:59:44 -06:00
Brian Paul
fe818ea797
intel: fix GL state bugs in intel_texture_bitmap()
...
Need to push texture state and polygon state too.
Fixes rendering glitches seen in progs/demos/engine when changing
the rendering mode (wireframe, texture modes).
This makes bitmap rendering a little slower, unfortunately.
2009-10-27 16:59:43 -06:00
Christoph Bumiller
7d967b9b7c
nv50: activate more lanes in a warp
...
Some cards have crippling defaults set and use only 4
of 32 lanes. This should activate 16 on these.
Those that allow 32 by default should still do so.
Found out by Marcin Kościelnicki.
2009-10-28 00:57:18 +01:00
Jakob Bornecrantz
8a1f239ca9
st/xorg: Adopt to new dirty clip rect type
2009-10-27 17:40:55 +01:00
Vinson Lee
50e113e375
progs/tests: Fix MSVC build.
2009-10-26 15:03:52 -06:00
José Fonseca
ad0975f701
scons: Define _USE_MATH_DEFINES on MSVC.
2009-10-26 15:17:26 +00:00
Brian Paul
87127c83dc
windows: added remap.[ch] to project files
...
Untested. Other updates may be needed to reflect the current source files.
2009-10-26 09:06:00 -06:00
Chia-I Wu
c9d715da39
mesa: Add remap.c to SConscript.
...
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
2009-10-26 09:01:29 -06:00
Zack Rusin
b5fb60041e
st/xorg: initialize indexes before reswizzling for yuv
2009-10-26 08:15:48 -04:00
Zack Rusin
0b069d648b
st/xorg: stop overflowing yuv buffers
2009-10-26 08:15:48 -04:00
Zack Rusin
a9f8baf00b
st/xorg: add yuv vertex shader
...
plus some general fixes
2009-10-26 08:15:48 -04:00
Zack Rusin
6b8ce4cc4f
st/xorg: add yuv shaders
2009-10-26 08:15:48 -04:00
Marek Olšák
5241b9568c
r300g: read occlusion query results from both Z pipes on RV530
2009-10-26 02:07:32 +01:00
Marek Olšák
827002f5ff
r300g: add cubemap support
...
Also, set a pitch for rectangles only.
2009-10-26 02:07:26 +01:00
José Fonseca
3a49497f10
gallium: Move enum pipe_error into p_defines.h.
...
It's really just another define. No need for its own header.
2009-10-25 21:11:54 +00:00
José Fonseca
88e08d7c6d
llvmpipe: Human friendlier sampler state dump.
2009-10-25 12:27:14 +00:00
José Fonseca
47f0529806
util: Human readable output of texture states.
2009-10-25 12:26:39 +00:00
José Fonseca
5fcb75758c
llvmpipe: Dump the sampler state of the shader key.
2009-10-25 11:49:01 +00:00
José Fonseca
e4c5e01c10
llvmpipe: Immediate multiplication.
2009-10-25 11:48:17 +00:00
José Fonseca
e1342f871b
llvmpipe: Fast path for sampling rgba8 textures with linear filtering.
...
Implement Keith's suggestion of doing most of the sampling with 16x8
and 8x16 AoS, and only doing the conversion to floating point SoA at
the very last step.
Improves gloss performance by 10%.
2009-10-25 09:53:49 +00:00
José Fonseca
f3893ca9c8
llvmpipe: Make lerping work for 8.8 fixed point values.
2009-10-25 09:53:49 +00:00
José Fonseca
bfd7a9ca96
llvmpipe: New module to help make assertions about formats.
2009-10-25 09:53:49 +00:00
José Fonseca
47d241be9f
llvmpipe: New function to unpack rgba8 formats into 4 x u8n AoS.
2009-10-25 09:53:49 +00:00
José Fonseca
abff4214ef
llvmpipe: Split the format swizzling step from the unpacking.
2009-10-25 09:53:48 +00:00
José Fonseca
8d80fd3f55
llvmpipe: Allow different signs when unpacking.
2009-10-25 09:53:48 +00:00
José Fonseca
b544ab7299
llvmpipe: Add inlines to quickly generate types matching the native SIMD register bitwidth.
2009-10-25 09:53:48 +00:00
José Fonseca
a55b305c5b
llvmpipe: Merge lp_build_load_rgba_soa into lp_build_sample_texel.
2009-10-25 09:53:48 +00:00
José Fonseca
bc93e9181c
llvmpipe: Factor our pixel offset computation.
2009-10-25 09:53:48 +00:00
José Fonseca
fedd054d53
llvmpipe: Share testing infrastructure with lp_test_format.
2009-10-25 09:53:48 +00:00
José Fonseca
17afb6dd69
llvmpipe: Eliminate lp_build_store_rgba_aos.
2009-10-25 09:53:48 +00:00
José Fonseca
232b586464
llvmpipe: Eliminate lp_build_load_rgba_aos.
2009-10-25 09:53:48 +00:00
José Fonseca
b4f6907b8d
llvmpipe: Move a few format/sampling functions into better space.
2009-10-25 09:53:47 +00:00
Marek Olšák
c2df759cd7
r300g: fix redefining mipmaps and fetching from them
2009-10-25 10:16:59 +01:00
Marek Olšák
118dfe1688
r300g: added support for 3D textures
...
Mipmaps not tested. Also, I am not sure why piglit/texturing/tex3d needs
to have color tolerance +-1 to pass. The classic Mesa driver doesn't
need that.
2009-10-25 08:06:19 +01:00
Joakim Sindholt
94a63dccdd
r300g: fix scons build yet again
2009-10-24 02:43:21 +02:00
Brian Paul
46a784b7fd
Merge branch 'mesa_7_6_branch'
2009-10-23 18:38:43 -06:00
Brian Paul
26f1ad65b9
mesa: simplify att->CubeMapFace assignment
2009-10-23 18:31:03 -06:00
Brian Paul
346250b190
mesa: refactor, new print_shader_info()
2009-10-23 18:31:03 -06:00
Brian Paul
81a4d34f07
mesa: rework error checking code for glGetCompressedTexImage()
...
Do all error checking in new getcompressedteximage_error_check() func.
Move some additional PBO checks out of the driver fallbacks into the
error checking functions.
2009-10-23 18:31:03 -06:00
Brian Paul
d66965c9a1
mesa: remove misplaced VERBOSE_TEXTURE tests
2009-10-23 18:31:02 -06:00
Brian Paul
9b50ceac03
mesa: more detailed error messages in fbo code
2009-10-23 18:31:02 -06:00
Brian Paul
dc8b139aa2
mesa: remove FBO texture depth/stencil test
...
The texture format should not be checked until validation time since
the format might be changed by a subsequent glTexImage() call.
2009-10-23 18:22:41 -06:00
Zack Rusin
b17c885a8a
st/xorg: fix text with component alpha rendering
2009-10-23 19:39:16 -04:00