Commit graph

31449 commits

Author SHA1 Message Date
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
Jerome Glisse
325614a882 r600c: substract vbo offset to vbo size
To avoid kernel complaining and to set proper boundary on
vbo, substract the vbo offset to the vbo size.
2010-02-12 17:06:19 +01:00
Andre Maasikas
08545799e3 r600: be more exact in vb size calculation
to make kernel cs checker happier, last attribs don't need full stride of
space. Calculate as count-1*stride + size of attrib
2010-02-12 16:23:49 +02:00
Andre Maasikas
eeb49d3ad8 r600: support GL_SHORT attributes
normalized seems to work with this setting.
2010-02-12 16:23:49 +02: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
Vinson Lee
d0ec18e111 glu/sgi: Initialize member of class primStream. 2010-02-12 00:41:01 -08:00
Vinson Lee
b5b1b452cd glu/sgi: Initialize members of class Arc. 2010-02-12 00:36:00 -08:00
Vinson Lee
977fa27360 glu/sgi: Initialize member of class Bin. 2010-02-12 00:28:44 -08: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
Karl Schultz
9209843878 main: Fix compiler warning. No need to convert/store depthScale as GLfloat just to convert it back to GLuint to call unpack_depth_span.
Also removes a difference between the 24/8 and 8/24 texstore routines.
2010-02-11 16:49:41 -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
Ian Romanick
381d5e2098 glxgears_fbconfig: Use glXCreateWindow and glXDestroyWindow 2010-02-11 15:40:29 -08:00
Ian Romanick
6518f6037c glxgears_fbconfig: Use GLX 1.3 name for function poiner types 2010-02-11 15:40:29 -08:00
Ian Romanick
d46d30f997 glx: Pass fbconfig ID or visual ID to CreateContext
Pass either the fbconfig ID or the visual ID, as appropriate, to
CreateContext.  Now CreateContext does not derefernce fbconfig or vis
(which no longer exists as a parameter).
2010-02-11 15:40:29 -08:00
Ian Romanick
c3db1d621e glx: Use the screen parameter everywhere instead of vis->screen, etc. 2010-02-11 15:40:29 -08:00
Ian Romanick
52cf8db428 glx: Move work of converting a visual to an fbconfig
For the direct rendering case, the DRI createContext function wants an
fbconfig.  When glXCreateContext is called, we have to convert the
visual to an fbconfig.  This work was done in CreateContext, but it
makes more sense for it to be done in glXCreateContext.
2010-02-11 15:40:29 -08:00
Ian Romanick
bc7b2f0dc3 glx: Re-indent CreateContext after the previous commit 2010-02-11 15:40:29 -08:00
Ian Romanick
2243029eee glx: Handle imported contexts outside of CreateContext
A long time ago I was a bit over-agressive in refactoring context
creation into a single function.  The creation code for
glXImportContextEXT does not belong  in CreateContext because it does
not use any GLX protocol.  The big if-statement for the import case
routed around almost the entire function anyway.
2010-02-11 15:40:29 -08:00
Ian Romanick
7bcfb66000 glx: Pass screen number as parameter to CreateContext
Passing the screen parameter to CreateContext will simplify a couple
of changes that are coming.
2010-02-11 15:40:29 -08:00
Ian Romanick
8bffadbc83 glx: Pass opcode to CreateContext instead of use_glx_1_3 parameter
Passing the opcode directly instead of having CreateContext infer it
from the value of fbconfig and the use_glx_1_3 flag will simplify some
changes that are coming.
2010-02-11 15:40:29 -08:00
Ian Romanick
68fef18439 glx: Fix interval test in glXSwapIntervalMESA
It appears that, in spite of what the spec says, the interval
parameter to glXSwapIntervalMESA has been an unsigned int since
day-1.  This made the 'if (interval < 0)' test useless.  The test is
removed and the spec is updated to note that the interval is an
unsigned value.
2010-02-11 15:40:29 -08:00
Ian Romanick
1add5354d0 glx: Change type to eliminate 'comparison between signed and unsigned' warning 2010-02-11 15:40:29 -08:00
Ian Romanick
71a6fb15ce glx: Add casts to eliminate 'comparison between signed and unsigned' warnings 2010-02-11 15:40:28 -08:00
Ian Romanick
26b2bee79d glx: Eliminate several 'unused variable' warnings in glxcmds.c. 2010-02-11 15:40:28 -08:00
Ian Romanick
2b4e009ed5 glx: Use wrapper macro to detect direct rendering
The wrapper macro GC_IS_DIRECT is used in CreateContext and a couple
other places to eliminate the need for some of the '#ifdef
GLX_DIRECT_RENDERING' madness.  There appear to be a *LOT* of places
in glxcmds.c where '#ifdef GLX_DIRECT_RENDERING' is missing.
2010-02-11 15:40:28 -08:00
Karl Schultz
2d1088cc17 Turn off 64-bit portability problems detection. 2010-02-11 15:55:04 -07:00
Roland Scheidegger
16d520f6d6 nouveau: fix compile errors... 2010-02-11 23:11:03 +01:00
Kristian Høgsberg
c7ab5994ee glapi: Avoid #including gl.h
It's only used for a couple of integer types and and might conflict
with other client API header files.
2010-02-11 17:04:06 -05:00
Kristian Høgsberg
cc57baff5f i915: Remove always-true irq_active struct intel_screen field 2010-02-11 16:56:44 -05:00
Kristian Høgsberg
c9b0f04b1f i915: Remove a few DRI1 era struct intel_screen fields 2010-02-11 16:54:20 -05:00
Kristian Høgsberg
5777dee02c i915: Drop intelScreenPrivate typedef and just call it struct intel_screen 2010-02-11 16:49:26 -05:00
Kristian Høgsberg
cbfd4147ca i915: Remove unused intelRegion struct
Phew, sure is nice to only have one struct called intel region.
2010-02-11 16:49:07 -05: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
Kristian Høgsberg
fa43956b5c i915: Remove left-over drmUnmap() 2010-02-11 16:34:11 -05: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
362fa6763c mesa: additional constant/limit assertions 2010-02-11 11:34:54 -07:00
Brian Paul
0be04f710e svga: implement PIPE_CAP_MAX_COMBINED_SAMPLERS query 2010-02-11 11:34:54 -07:00