Chia-I Wu
12deb9e6ca
Merge remote branch 'origin/gallium-st-api-dri'
2010-03-21 16:32:34 +08:00
Marek Olšák
162bc831c9
r300g: align misaligned ushort vertex indices
2010-03-21 05:42:50 +01:00
Marek Olšák
53ca4f8401
r300g: fix misaligned generated offset for ubyte vertex indices
2010-03-21 05:42:49 +01:00
Marek Olšák
04de5f4b8b
r300g: split the vertex buffer alignment validation
2010-03-21 02:19:55 +01:00
Marek Olšák
951d89ae3a
r300g: skip null vertex buffers
2010-03-21 02:19:55 +01:00
Marek Olšák
7b38f946a0
r300/compiler: fix assertion failure in the r500-fragprog emission path
2010-03-21 02:06:44 +01:00
Corbin Simpson
44cfc4ad74
r300g: Bump immediate limits.
...
Seems like a decent idea, especially since the big barrier now is
getting the VBOs back from the VRAM boundary.
2010-03-20 17:18:22 -07:00
Corbin Simpson
4711aa089e
r300g: Correctly hax max_index on pipe_vertex_buffers.
...
Still not happy with this, but at least things seem to work.
2010-03-20 17:16:46 -07:00
Corbin Simpson
7c8221b460
radeong: Use TRUE and FALSE.
2010-03-20 16:16:11 -07:00
Corbin Simpson
20dedcca3c
radeong: Test the BO ptr for NULL instead of using a bool.
...
Slight memory savings, but more importantly also avoids a potential NULL
dereference.
2010-03-20 16:16:11 -07:00
Dave Airlie
c2d17dce27
r300g: winsys fix tiling change flushes.
...
If we change the tiling on a buffer we need to flush it, the old
radeon_buffer.c code had this but it crossed streams when I ported to
radeon_drm_buffer.c and I missed it. Should fix some piglit regressions.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-21 06:56:49 +10:00
Dave Airlie
03f1896304
r300g: add buffer/texture referenced checks.
...
I've no idea about the comments that were in there, just pass
this down to the winsys.
Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-03-21 06:56:49 +10:00
Brian Paul
449721a3d0
docs: note GL_EXT_packed_float, GL_EXT_shared_exponent extensions
2010-03-20 12:06:36 -06:00
Brian Paul
61753c4bf7
mesa: added GL3 query for GL_TEXTURE_SHARED_SIZE
2010-03-20 12:06:36 -06:00
Brian Paul
9fca5d2e39
mesa: added missing glGet query for GL_MAX_ARRAY_TEXTURE_LAYERS_EXT
2010-03-20 12:06:36 -06:00
Brian Paul
d6a9f5b3da
mesa: added new GL3 buffer object queries
...
And clean up the error checking code.
2010-03-20 12:06:35 -06:00
Brian Paul
8829e063aa
mesa: added GL3 buffer attachment aliases
2010-03-20 12:06:35 -06:00
Brian Paul
00225af999
mesa: added GL3 ContextFlags field and query code
2010-03-20 12:06:35 -06:00
George Sapountzis
fe5f070ef9
st/dri: fix bug in make_current
2010-03-20 12:59:58 +08:00
George Sapountzis
92827cd451
st/dri: fix bug in allocate_textures
2010-03-20 12:59:58 +08:00
Brian Paul
05c03c6a1b
gallivm: simplify and clean-up Z/stencil bit mask/shift code
...
Refactor the code into two helper functions which compute the bit mask
and shift terms for Z and stencil. Plus add a bunch of new comments to
explain everything.
2010-03-19 10:03:41 -06:00
Roland Scheidegger
3b9555094d
cso: remove cso_set/save/restore_sampler_textures
...
no longer used after all statetrackers have been converted.
2010-03-19 16:30:47 +01:00
Roland Scheidegger
e5f0384ad0
st/vega: fix up vega state tracker to use cso changes
...
use cso fragment sampler views instead of sampler textures.
since we don't really change views, try to store sampler views instead
of the textures to avoid having to recreate views most of the time.
2010-03-19 16:29:22 +01:00
Brian Paul
8221a0e7f7
es: added -I$(TOP)/include path
2010-03-19 07:37:18 -06:00
Michal Krol
980da4aed2
gallium/docs: Clarify sampler view descriptions.
2010-03-19 09:08:33 +01:00
Corbin Simpson
8e1768cfd3
gallium/docs: Fix a couple ReST errors.
2010-03-19 00:07:55 -07:00
Marek Olšák
12a40dda39
r300g: lod min/max clamping should be relative to the base level
2010-03-19 04:46:15 +01:00
Marek Olšák
afae089194
r300g: fix breakage after the gallium-sampler-view merge
2010-03-19 04:09:07 +01:00
Marek Olšák
f6e987ce78
r300g: add PIPE_FORMAT_B5G5R5X1_UNORM colorbuffer support, cleanups
2010-03-19 01:18:19 +01:00
Marek Olšák
0c81739528
r300g: mark SRGB colorbuffers as unsupported
...
I can't find the register bits for SRGB-aware blending and it's not even
exposed by fglrx so it's most probably not supported by hw.
2010-03-19 01:18:19 +01:00
Marek Olšák
cba6430524
r300g: add generating texture coordinates for point sprites (WIP)
2010-03-19 01:18:18 +01:00
Brian Paul
8df65e9899
gallivm: support PIPE_FORMAT_Z24S8_UNORM in depth/stencil code
2010-03-18 17:27:46 -06:00
Brian Paul
c9c0baabdc
progs/tests: also test stencil INCR_WRAP mode if supported
2010-03-18 15:04:39 -06:00
Brian Paul
66b6676d14
gallivm: fix broken INCR/DECR stencil modes
...
We were mistakenly using the wrong data type for stencil values before.
2010-03-18 15:02:15 -06:00
Brian Paul
705ed3326c
progs/tests: comments and clean-ups
2010-03-18 14:53:43 -06:00
Brian Paul
22e6dc3870
gallivm/llvmpipe: added lp_rast_shader_inputs::facing and pass through
...
The triangle rasterizer sets this field to indicate front/back-facing.
It gets passed into the generated fragment code as another parameter.
Used now for stencil front/back selection but will also be used for
fragment shaders in general (see TGSI_SEMANTIC_FACE).
With this commit two-sided stenciling mostly works but there's
still a bug or two...
2010-03-18 13:06:32 -06:00
Brian Paul
d219b8a022
llvmpipe: defines for RAST_WHOLE, RAST_EDGE_TEST
2010-03-18 13:06:32 -06:00
Alan Hourihane
94abc4b51e
Add format B5G5R5X1
2010-03-18 18:01:41 +00:00
Brian Paul
521c61ff01
gallivm/llvmpipe: simplify front/back stencil ref value handling
...
Instead of passing an array, just pass two scalar values.
2010-03-18 11:31:38 -06:00
Brian Paul
ecf85c7d75
gallivm: checkpoint WIP two-sided stencil test
2010-03-18 11:18:01 -06:00
Brian Paul
a1e7aeecc2
llvmpipe: set opaque = FALSE if stencil enabled
...
Fixes occasional bad tiles seen in some demos like progs/demos/reflect.c
2010-03-18 09:30:15 -06:00
Francisco Jerez
3c0eab7148
dri/nouveau: Flush after texture validation.
...
Swizzling needs the destination surface in VRAM, but the subsequent
rendering operations making use of it are likely to not care. Fire the
ring after validation to leave the memory manager more room for
maneuvering.
2010-03-18 15:02:37 +01:00
Francisco Jerez
6193c41bcd
dri/nouveau: Avoid pushbuf flushes in the middle of LMA setup.
2010-03-18 15:02:37 +01:00
Francisco Jerez
c944fb5ffe
dri/nouveau: Implement texcoord generation.
2010-03-18 15:02:36 +01:00
Francisco Jerez
1a812ab57a
dri/nouveau: Implement texture matrices.
2010-03-18 15:02:36 +01:00
Francisco Jerez
d475eae50b
dri/nouveau: Some minor vertex submission fixes.
2010-03-18 15:02:35 +01:00
Xavier Chantry
50be9bc6ce
dri/nouveau: only reallocate texture when needed
...
nouveau reallocated the mipmap tree on every MIN_FILTER call to account
for mipmap change. We only need to do this if the texture does not fit
in the existing mipmap tree. This gives a big performance boost for a
game like bzflag which changes MIN_FILTER all the time for its font
rendering.
Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com>
Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-03-18 15:02:34 +01:00
José Fonseca
9d48a621d2
llvmpipe: Fix crashes when there is no depth buffer bound.
2010-03-18 10:24:10 +00:00
Kristian Høgsberg
6de8e563ac
intel: Call _mesa_make_current() after getting initial buffers
...
The default viewport is the window rectangle, which is set up by
_mesa_make_current(). To be able to do that we need to get the
window dimension (and buffers) first, so we have to call
intel_prepare_render() before we can call into _mesa_make_current().
Fixes #26676 and #26678 .
2010-03-17 22:45:21 -04:00
Chia-I Wu
a0d615fd97
st/mesa: Set the pipe context of the texture object.
...
The field was added in b8030c6561 . This
fixes a NULL dereference in xdemos/texture_from_pixmap.
2010-03-18 09:43:23 +08:00