Eric Anholt
b4922b5331
mesa: Add support for ARB_depth_clamp.
...
This currently doesn't include fixing up the cliptests in the assembly
paths to support ARB_depth_clamp, so enabling depth_clamp forces the C path.
2009-09-08 14:30:15 -07:00
Eric Anholt
3e4539a471
i965: Respect spec requirement for pixel shader computed depth with no zbuffer.
2009-09-08 14:28:23 -07:00
Eric Anholt
15c0cc5cf4
i965: Set NULL WM surfaces as tiled according to requirement by specs.
2009-09-08 14:28:23 -07:00
Eric Anholt
ea6dab2537
i965: Use the renderbuffer surface size instead of region size for WM surfaces.
...
For drawing to lower mipmap levels, the region size makes the renderbuffer
be the size of the lowest level, instead of the current level. On DRI1,
Brian previously found that the RB size was incorrect, so leave this broken
there.
2009-09-08 14:28:23 -07:00
Eric Anholt
58a57e3fc4
Revert "intel: helper to debug bufmgr (disabled)"
...
This reverts commit e0ec405a9f .
This is already available in INTEL_DEBUG=bufmgr in the environment.
2009-09-08 14:28:23 -07:00
Brian Paul
b2de028523
i965: #include clean-ups
2009-09-08 14:33:47 -06:00
Brian Paul
e61215242b
intel: #include clean-ups
2009-09-08 14:33:47 -06:00
Brian Paul
8e8d3470be
i965: use _mesa_is_bufferobj()
...
Also, remove unneeded call to _mesa_validate_pbo_access(). It's done by
core Mesa as the comment suggested.
2009-09-08 14:33:47 -06:00
Brian Paul
ced699b37a
i965: use _mesa_is_bufferobj()
2009-09-08 14:33:47 -06:00
Brian Paul
abdf2e14bc
i965: use _mesa_is_bufferobj()
2009-09-08 14:33:47 -06:00
Brian Paul
00aac1d29a
i965: use _mesa_is_bufferobj()
2009-09-08 14:33:47 -06:00
Alex Deucher
e6ad286a80
r600: fix dri2 clipping
2009-09-08 16:03:25 -04:00
Michel Dänzer
e34ea368d9
st/xorg: Add support for EXA_MIXED_PIXMAPS and EXA_SUPPORTS_PREPARE_AUX.
...
Also make sure not to leak malloced memory when switching pixmaps to texture
based.
2009-09-08 18:08:24 +02:00
Vinson Lee
2c307c7750
scons: Add Mac OS to target platform list.
2009-09-08 12:32:37 +01:00
Michal Krol
fcb94f6e3e
gdi: Fix prototype of gdi_softpipe_surface_buffer_create().
2009-09-08 10:22:07 +02:00
Vinson Lee
79f48c9f9e
scons: Don't set LLVM_VERSION if one of the llvm-config calls fails.
...
Ubuntu 8.10 has llvm-config version 2.2, which doesn't have
nativecodegen. This triggers an exception.
2009-09-07 15:16:25 +01:00
José Fonseca
b481fb2c6d
llvmpipe: Silent debug statement.
2009-09-07 15:02:08 +01:00
José Fonseca
1127201088
llvmpipe: Better abs for floating points.
2009-09-07 15:02:08 +01:00
José Fonseca
e4c76c02f7
llvmpipe: Code generate the texture sampling inside the shader.
...
Finally a substantial performance improvement: framerates of apps using
texturing tripled, and furthermore, enabling/disabling texturing only
affects around 15% of the framerate, which means the bottleneck is now
somewhere else.
Generated texture sampling code is not complete though -- we always
sample from the base level -- so final figures will be different.
2009-09-07 15:02:08 +01:00
José Fonseca
de8376e2f2
llvmpipe: Texture sampling code generation primitives.
...
Only supports single level 2d textures, with neareast and bilinear
filtering for now.
2009-09-07 15:02:07 +01:00
José Fonseca
0c2ea24338
llvmpipe: Convenience function to obtain the integer type with same bitdepth of an arbitrary type.
2009-09-07 15:02:07 +01:00
José Fonseca
fa0f4b35be
llvmpipe: Utility functions for linear and bilinear interpolation.
2009-09-07 15:02:07 +01:00
José Fonseca
4da20234f3
llvmpipe: Correct implementation of floor.
2009-09-07 15:02:07 +01:00
José Fonseca
b1eff018c7
llvmpipe: Utility function to get the pointer to a structure member.
2009-09-07 15:02:07 +01:00
José Fonseca
866fbacf2b
llvmpipe: SoA pixel unpacking specialization.
2009-09-07 15:02:06 +01:00
José Fonseca
6b129a8222
util: Utility function to check if a number is a power of two.
2009-09-07 15:02:06 +01:00
José Fonseca
8be72bb764
llvmpipe: Further abstract the texture sampling generation from TGSI translation.
2009-09-07 15:02:06 +01:00
Michal Krol
970823978c
mesa: Include <unistd.h> only when one is available.
2009-09-07 09:31:17 +02:00
Michal Krol
826d441cdf
mesa: Fix calling conventions of sync object api callbacks.
2009-09-07 09:16:35 +02:00
Michel Dänzer
617202b578
r300g: Fix some issues pointed out by compiler warnings.
2009-09-06 18:12:14 +02:00
Michel Dänzer
7b8ec0d8e7
r300g: Handle PIPE_BUFFER_USAGE_DONTBLOCK as intended.
...
Return NULL if the BO is busy, otherwise just map it.
2009-09-06 18:12:14 +02:00
Brian Paul
23663ae914
mesa: initial version of _mesa_meta_generate_mipmap()
...
Incomplete and totally untested. Based on intel_generate_mipmap().
2009-09-06 09:39:50 -06:00
Brian Paul
4d63c626d0
xlib: test _mesa_meta_bitmap()
2009-09-06 09:37:30 -06:00
Brian Paul
886e7b318d
mesa: use separate temp texture for bitmaps
2009-09-06 09:37:30 -06:00
Brian Paul
b2951ffe96
mesa: temp_texture changes
2009-09-06 09:37:30 -06:00
Brian Paul
f477fa7a85
mesa: free meta bitmap buffers
2009-09-06 09:37:29 -06:00
Brian Paul
0e5293a240
mesa: use _mesa_set_enable()
2009-09-06 09:37:29 -06:00
Brian Paul
bcb62ae78a
mesa: _mesa_meta_bitmap() function
2009-09-06 09:37:29 -06:00
Brian Paul
4fdc96db1d
xlib: move misplaced brace
2009-09-06 09:37:29 -06:00
Nicolai Hähnle
1ddb22675c
r300g: Fix a number of warnings
...
Seriously guys....
2009-09-06 15:14:22 +02:00
Nicolai Hähnle
4b01e6f614
r300g: Debug flags infrastructure
...
So that debugging is no longer a full-spam-or-nothing approach, you are now
supposed to set the RADEON_DEBUG environment flag just like for classic Mesa.
The available debug flags are different, however. Just running an OpenGL
application with RADEON_DEBUG set to an arbitrary string will print out
helpful information.
Everything must be compiled with -DDEBUG for any of this to work
2009-09-06 15:03:52 +02:00
Cooper Yuan
9778731732
r300g: update the value of register VAP_VF_MAX_VTX_INDX
...
according to actual vertex index count.
2009-09-05 20:58:32 +08:00
Cooper Yuan
80ea03bd17
r300g: update rs_block state after changing rasterizer
2009-09-05 14:26:39 +08:00
Cooper Yuan
8f990f928b
r300g: need to validate scissor and viewport state if bind new rasterizer
2009-09-05 10:26:39 +08:00
Alex Deucher
9ab19a3900
r600: add support for EXT_texture_sRGB
2009-09-04 18:46:16 -04:00
Alex Deucher
60ca65c016
r300: Add support for GL_EXT_provoking_vertex
2009-09-04 18:46:15 -04:00
Alex Deucher
8fd7586bcc
r600: Add support for GL_EXT_provoking_vertex
2009-09-04 18:46:15 -04:00
Eric Anholt
0612ad4f19
i965: Don't set the complete field when there is more VUE yet to come.
...
This should help with things like lightsmark, but I don't have a testcase
for this commit.
2009-09-04 14:20:09 -07:00
Eric Anholt
a47858e45e
i965: Add support for 2 threads in the GS.
...
This brings noop vertex shader throughput from 6.8M verts/sec to 10.4M
verts/sec using GL_QUADs on my GM45.
2009-09-04 14:20:09 -07:00
Eric Anholt
8f7f22ca1d
i965: Add support for KIL_NV in brw_wm_emit.c
...
I ran into this lack of support when writing a shader that always discarded
the fragments.
2009-09-04 14:20:08 -07:00