Commit graph

32659 commits

Author SHA1 Message Date
Marek Olšák
afae089194 r300g: fix breakage after the gallium-sampler-view merge 2010-03-19 04:09:07 +01:00
Ian Romanick
062a208814 intel: Use bit-wise not instead of logical not (i830 path)
The assertion is checking that the low-order bits of offset are not
set.  It does this by anding the inverted offset mask with the
offset.  This is clearly intended to be a bit-wise "invert".

Fixes bug #25984.
2010-03-18 17:30:15 -07:00
Ian Romanick
689e4b5541 intel: Correct value of S0_VB_OFFSET_MASK to match hardware docs. 2010-03-18 17:28:52 -07: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
Ian Romanick
fda5078324 Use bit-wise not instead of logical not.
The assertion is checking that the low-order bits of offset are not
set.  It does this by anding the inverted offset mask with the
offset.  This is clearly intended to be a bit-wise "invert".

Fixes bug #25984.
2010-03-18 15:35:05 -07: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
Brian Paul
b7e8039132 st/mesa: s/unpack/pack/ to be more consistent 2010-03-18 09:17:11 -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
Kristian Høgsberg
38bd7282f2 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-18 09:53:41 -04: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
Chia-I Wu
bd1ce87472 st/dri: Switch from st_public.h to st_api.h.
This is tested with demos found in progs/demos.  However, only the DRI2
path is tested.
2010-03-18 09:43:22 +08:00
Chia-I Wu
5ff21634f3 st/dri: Implement st_api.h callbacks.
This commit adds dri_st_api.c that implements st_api.h callbacks.  A
following commit will switch st/dri from st_public.h to st_api.h.
2010-03-18 09:34:37 +08:00
Chia-I Wu
903b90926c st/dri: Headers and public symbols clean up.
Remove unused headers and stop marking driDriverAPI as PUBLIC.
2010-03-18 08:48:13 +08:00
Chia-I Wu
61631a89a3 st/dri: Move DRI1 bits in dri_context.c to dri1.c. 2010-03-18 08:48:13 +08:00
Chia-I Wu
a437bc50f2 st/dri: Move DRI1 bits in dri_drawable.c to dri1.c. 2010-03-18 08:48:13 +08:00
Chia-I Wu
ca69249f25 st/dri: Move DRI1 bits in dri_screen.c to dri1.c. 2010-03-18 08:48:12 +08:00
Brian Paul
05a980ac2a cell: return 1 for PIPE_CAP_BLEND_EQUATION_SEPARATE
With this feature, we get OpenGL version 2.0 and the progs/glsl/
demos run as-is.
2010-03-17 17:40:13 -06:00
Brian Paul
6dd4054ca5 cell: be more conservative in cell_is_format_supported()
This fixes a regression from commit a84575cdc0
which changed the depth/stencil format we were trying to use.
2010-03-17 16:35:29 -06:00
Brian Paul
0557d0a4b2 progs/trivial: added comments 2010-03-17 16:29:34 -06:00
Brian Paul
fecd4cde50 gallivm/llvmpipe: basic stencil testing works
Most stencil demos look OK (modulo some unrelated rendering glitches).
Only single-sided stencil test works at this point.
There are probably some bugs to be found...
2010-03-17 16:29:34 -06:00
Brian Paul
227824ac69 llvmpipe: remove incorrect depth test check 2010-03-17 16:29:34 -06:00
Brian Paul
2b8db4ce15 gallivm: added lp_build_andc() 2010-03-17 16:29:34 -06:00
Brian Paul
8dc8c3f5b1 llvmpipe: silence some pointer/casting warnings 2010-03-17 16:29:34 -06:00
Brian Paul
d1c9e59883 gallivm/llvmpipe: more asst changes for stencil testing 2010-03-17 16:29:34 -06:00
Brian Paul
67b82fc395 gallivm/llmvpipe: pass stencil refs state into z/stencil build code 2010-03-17 16:29:34 -06:00
Brian Paul
b8b1bb946f llvmpipe: use new LP_JIT_CTX_ enums for jit context field positions
Use the new enum values rather than integers in a few places.
2010-03-17 16:29:34 -06:00
Brian Paul
eee5114797 llvmpipe: added stencil ref values to jit context state 2010-03-17 16:29:34 -06:00
Brian Paul
6379e47ebd llvmpipe: break lines 2010-03-17 16:29:34 -06:00
Eric Anholt
362c1bf75e intel: Replace mt->pitch with mt->region->pitch.
The pitch is not really an inherent part of the miptree, since it's
not part of any of the layout calculations, and it's dictated by the
libdrm-allocated region pitch now.
2010-03-17 11:24:01 -07:00
Eric Anholt
30446f8a70 intel: Return false like other blit failure paths if out of aperture.
The primary consumer of this (miptree relayout) already has this code
for handling failure, and the other paths want to know if failure
actually occurs and do something appropriate, which may not include
memcpy.
2010-03-17 11:24:01 -07:00
Eric Anholt
e1e48ea15c intel: Respect src pitch in _mesa_copy_rect().
If a non-zero src_y was used, this would break piglit
depth-level-clamp.
2010-03-17 11:24:01 -07:00
Eric Anholt
da011faf48 intel: Rely on allocated region pitch for the miptree pitch.
Bug #26966: 945 miptree pitch disagreement with libdrm.
2010-03-17 11:23:43 -07:00