Marek Olšák
8e2f9f4009
r300g: disable independent blend enables
...
Not supported by r300.
2010-02-13 15:44:43 +01:00
Marek Olšák
75910e96dc
r300g: emit INDEPENDENT_COLORFORMAT_ENABLE only on r5xx
2010-02-13 15:44:42 +01:00
Vinson Lee
4123df2074
st/xlib: Remove unnecessary header.
2010-02-12 23:24:22 -08:00
Vinson Lee
f618641631
svga: Silence uninitialized variable warning.
2010-02-12 22:33:37 -08:00
Corbin Simpson
6a07a1738c
util: Properly init memory for blitter CSOs.
...
Fixes misrender on r300g.
2010-02-12 20:48:46 -08:00
José Fonseca
cd5d760889
svga: A few more tweaks to blend color state emission.
2010-02-12 23:48:22 +00:00
José Fonseca
6af833add2
svga: Clamp max cube texture levels to supported max 2d levels.
2010-02-12 23:46:58 +00:00
José Fonseca
2bb4d75f28
svga: Report the 2d/3d texture sizes supported by the host.
2010-02-12 23:46:55 +00:00
José Fonseca
a80d988144
wgl: Go into dormant state when DLL is unloaded unclealy.
...
When our DLL is unloaded, even if we leave the data structures in memory
for sake of future calls, the MS CRT will destroy the heap. Instead we
make all calls no-ops by setting stw_dev to NULL.
2010-02-12 23:38:19 +00:00
Brian Paul
3798cc8157
cell: implement PIPE_CAP_MAX_COMBINED_SAMPLERS query
2010-02-12 15:24:24 -07:00
Zack Rusin
fd40b9ff32
st/dri: don't expose visuals we'll have trouble supporting
...
without getBuffersWithFormat some visuals will just cause headaches (crashes),
so if we're running on an older system simply don't advertise them.
2010-02-12 16:00:45 -05:00
Zack Rusin
59b4146a5d
st/dri, st/xorg: fix buffers that have attachements of different depth
...
we actually need to specify the formats for different attachements, otherwise
if the color buffer is 24bpp and the app asks for 16bpp depth buffer than
we end up fetching the depth from the drawable which is 24bpp and end up
creating the wrong depth buffer. use the new getBuffersWithFormat extension
to pass the depth correctly.
2010-02-12 16:00:22 -05:00
Roland Scheidegger
7082c47d14
svga: enable code to emit blend color
2010-02-12 21:43:45 +01:00
Roland Scheidegger
6602889d82
Merge branch 'gallium-dynamicstencilref'
2010-02-12 21:39:29 +01:00
Patrice Mandin
536ae20f80
nouveau: nv30: it may have 8 texture samplers (not 4), but shader engine has 16 texture units
...
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-02-12 19:22:41 +01:00
Brian Paul
0087f9dc06
cell: adjust structure padding
...
The size of some core Gallium state structures has changed so the
padding on some cell structs needed to be adjusted to keep them
a multiple of 16 bytes.
2010-02-12 11:07:51 -07:00
Brian Paul
e4afe725ee
cell: remove unused var
2010-02-12 11:06:19 -07:00
Brian Paul
6c35e178d3
cell: include cell_context.h
2010-02-12 11:06:04 -07:00
Brian Paul
0ad0d8125a
cell: re-fix undeclared var
2010-02-12 09:47:34 -07:00
Brian Paul
8a92c2b23c
cell: declare stencil_value variable
2010-02-12 09:43:18 -07:00
Michal Krol
69dd99ba86
Revert "util: Fix descriptors for R32_FLOAT and R32G32_FLOAT formats."
...
This reverts commit aa0b671422 .
2010-02-12 14:45:51 +01:00
Michal Krol
aa0b671422
util: Fix descriptors for R32_FLOAT and R32G32_FLOAT formats.
...
Fill in ones for missing components.
2010-02-12 13:32:35 +01:00
Patrice Mandin
1dd6e0b673
nouveau: nv30: Define number of texture samplers
...
Signed-off-by: Patrice Mandin <patmandin@gmail.com>
2010-02-12 13:23:48 +01:00
José Fonseca
e475ae920a
wgl: Do not reach out and destroy contexts on cleanup.
...
Simply skip cleanup when contexts are still active.
This addresses two issues:
- in some situations the ICD DLL may be unloaded before the DLL that is
using GL contexts is, so we may receive GL calls after stw_cleanup.
- when aborting (exception, or control-c) the contexts may have been left
in an inconsistent state and attempting to destroy can cause
unpredictable results.
2010-02-12 11:40:05 +00:00
José Fonseca
8ce747defa
gdi: Never fail at DLL load time.
...
Windows doesn't really expect things to fail at this point -- it
will try many times until it finally gives up, worse, something bad
happens.
The WGL state tracker will gracefully decline to do work even when it
is loaded.
2010-02-12 11:40:02 +00:00
José Fonseca
e6b66210de
wgl: Fail gracefully whenever 3D could not be enabled for some reason.
2010-02-12 11:39:58 +00:00
José Fonseca
ea8f7bd2e4
svgadump: Several improvements to shader dumping.
2010-02-12 11:10:41 +00:00
Ben Skeggs
ba3c874f08
nouveau: use AVAIL_RING()
2010-02-12 16:03:20 +10:00
Ben Skeggs
6af75a0ff4
nouveau: switch to nouveau_bo_new_tile()
2010-02-12 16:03:20 +10:00
Brian Paul
04d35714a6
svga: check min_index, max_index before assertions
...
It's possible for min_index and max_index to be ~0 if the min/max
values were not actually set or computed in the state tracker.
Skip some assertions in that case.
This only effects the debug build error checking.
(cherry picked from commit 408f32dc16 )
2010-02-11 16:54:48 -07:00
Roland Scheidegger
ebe12d5006
gallium: make max_anisotropy a unsigned bitfield member
...
saves us a dword in sampler state, hw can't do non-integer aniso degree anyway.
To allow aniso 1x (which seems of dubious value but some hardware (radeons)
have such a mode, and even d3d allows specifiying it) redefine anisotropic
filtering as disabled only if max_anistropy is 0.
2010-02-12 00:43:38 +01:00
Roland Scheidegger
16d520f6d6
nouveau: fix compile errors...
2010-02-11 23:11:03 +01:00
Roland Scheidegger
67479eea36
nv50: adapt to stencil ref changes
2010-02-11 22:48:39 +01:00
Roland Scheidegger
dc8c0959bd
nv40: adapt to stencil ref changes
2010-02-11 22:48:31 +01:00
Roland Scheidegger
bedb6faec0
nv30: adapt to stencil ref changes
...
not sure if this has any hope of working
2010-02-11 20:55:33 +01:00
Brian Paul
0be04f710e
svga: implement PIPE_CAP_MAX_COMBINED_SAMPLERS query
2010-02-11 11:34:54 -07:00
Roland Scheidegger
ed0f3b08b6
gallium: make u_blitter code save/restore stencil ref values
2010-02-11 19:01:10 +01:00
Roland Scheidegger
bf4b0773c5
r300g: adapt to stencil ref changes
2010-02-11 18:48:57 +01:00
Roland Scheidegger
94c035f61d
cell: adapt to stencil ref changes
...
not betting this compiles, some of the code handling stencil test seems
incomplete and/or never called?
2010-02-11 18:18:11 +01:00
Roland Scheidegger
0b659dee69
i965g: adapt to stencil ref changes
...
while there also potentially fix logic ops (were never enabled before)
2010-02-11 18:16:52 +01:00
Roland Scheidegger
388109c04d
i915g: adapt to stencil ref changes
2010-02-11 18:16:09 +01:00
Roland Scheidegger
263406addb
gallium: give pipe_stencil_ref its own cso_save/restore functions
...
seems cleaner, and other dynamic state like viewport is handled that way too
2010-02-11 18:15:10 +01:00
José Fonseca
be29a60f9e
Revert "llvmpipe: Move tile coordinate assertion into a more useful place."
...
This reverts commit 8c0391726a .
Too pendantic.
2010-02-11 12:14:01 +00:00
José Fonseca
c72e8b3edd
scons: Fix drm/intel build.
2010-02-11 11:51:32 +00:00
José Fonseca
9381dd590f
llvmpipe: Handle TGSI_TOKEN_TYPE_PROPERTY.
...
Avoids assertion failures with certain shaders.
2010-02-11 11:08:30 +00:00
José Fonseca
8c0391726a
llvmpipe: Move tile coordinate assertion into a more useful place.
2010-02-11 10:59:41 +00:00
José Fonseca
764c172aa9
llvmpipe: Clamp both extremes of triangles to framebuffer size.
...
Fix segmentation fault when triangles crossed the axis.
2010-02-11 10:58:46 +00:00
José Fonseca
128d93a009
gallivm: TGSI_OPCODE_CONT is not deprecated.
...
Note that with FIXME instead of an assertion failure.
Addresses fdo 25956.
2010-02-11 10:08:52 +00:00
Ben Skeggs
16a91bd2fd
nouveau: remove u_simple_screen.h includes
2010-02-11 15:21:31 +10:00
Roland Scheidegger
b75adabc89
gallium: also save/restore stencil_ref in cso_save/restore_depth_stencil_alpha
...
makes life of state trackers easier
2010-02-11 04:06:01 +01:00