Commit Graph

35308 Commits

Author SHA1 Message Date
Keith Whitwell 64682da8ab draw: don't try to precalculate the pipeline output primitive
We were previously calculating a value which was either the geometry
shader output primitive or the application's input primitive, and
passing that to the various front/middle/back components for use as
the ultimate rendering primtive.

Unfortunately, this was not correct -- if the vcache decomposition
path is active and geometry shaders are *not* active, we can end up
with a third primitive -- specifically the decomposed version of the
input primitive.

Rather than trying to precalculate this, just let the individual
components inform their successors about which primitive type they are
recieving.
2010-06-23 18:10:20 +01:00
Brian Paul 292eecca8c draw: mask off DRAW_PIPE_FLAG_MASK bits in prim decompose code
Any elt may potentially have flags bits set so mask off those bits
everywhere.

Fixes crashes with demos/gamma.c, redbook/polys.c, etc. but polygon
stippling is still broken.
2010-06-23 09:20:02 -06:00
Chia-I Wu 985c2fca10 egl: Add a test for MESA_EGL_NO_X11_HEADERS.
When the macro is defined, X11 headers will not be included.
2010-06-23 15:15:00 +08:00
Chia-I Wu 78d70ddbbd egl: Add support for EGL_MESA_drm_display.
The extension defines eglGetDRMDisplay that creates an EGLDisplay from a
DRM fd.  Calling eglCreateWindowSurace or eglCreatePixmapSurface with
such displays will generate EGL_BAD_NATIVE_WINDOW or
EGL_BAD_NATIVE_PIXMAP.
2010-06-23 15:14:59 +08:00
Chia-I Wu f22665df95 egl: Introduce platform displays internally.
This commit introduces type-safe platform displays internally.  A
platform display consists of a generic pointer and an enum that
specifies the platform.

An EGLDisplay is created from a platform display.  Native displays
become platform displays whose platform is determined by
_eglGetNativePlatform().  Platform windows and pixmaps may also be
introduced if needed.
2010-06-23 15:14:59 +08:00
Corbin Simpson 7dc1cf19ac radeong: Disable Galahad for now; breaks texturing. 2010-06-23 00:11:42 -07:00
Corbin Simpson ee2c6d748d id, glhd: Fix malloc/calloc of struct.
( >&)
2010-06-22 23:40:11 -07:00
Corbin Simpson a6cc914874 glhd: Add query protection.
Not quite copied from r300g. This is slightly more API-compliant.
2010-06-22 23:11:01 -07:00
Corbin Simpson aa451d509d glhd: Grab framebuffer state checks from r300g. 2010-06-22 23:00:44 -07:00
Corbin Simpson 3f758d4ed4 glhd: Grab resource_copy_region from r300g. 2010-06-22 22:49:13 -07:00
Corbin Simpson de7b181e99 glhd: Grab is_format_supported warning from r300g. 2010-06-22 22:49:13 -07:00
Corbin Simpson 7d551eb03d glhd: Add glhd_warn for unconditional stderr output.
Design decision. Bad API errors should never be silenced.

Of course, you can always not use galahad.
2010-06-22 22:49:13 -07:00
Corbin Simpson 75612aa199 id, glhd: Fix segfault with misreferenced pipe member.
And remove the offending member to keep that from happening again.
2010-06-22 22:49:13 -07:00
Corbin Simpson 40faedfe7b targets, radeong: Add Galahad.
Currently unconditional and causes segfaults.
2010-06-22 22:49:13 -07:00
Corbin Simpson 2560978588 configure: Add galahad to default build. 2010-06-22 22:49:13 -07:00
Corbin Simpson d3ad6fa579 gallium/drivers: Create Galahad from identity.
Galahad is a sanity-checking layer meant to replace the crufty and
scattered sanity checks inside drivers with a robust, non-silenceable,
useful set of warnings and errors that can be used to keep misbehaving
state trackers from going unnoticed.
2010-06-22 22:49:13 -07:00
Brian Paul 61ec205816 mesa: fix attachment error checking for glGetFramebufferAttachmentParameteriv()
This is a follow-on to commit 80dfec3e53.

The valid attachments for glGetFramebufferAttachmentParameteriv() depends
on whether we're querying the default FBO or a user-created FBO.
2010-06-22 21:55:51 -06:00
Marek Olšák a20fa67448 r300/compiler: allow 1024 instructions in r5xx vertex shaders 2010-06-23 03:58:46 +02:00
Marek Olšák dd90c3040e r300/compiler: allow 32 temporaries in vertex shaders 2010-06-23 03:57:27 +02:00
Marek Olšák 2f6b4187eb r300/compiler: emulate loops in vertex shaders
It is not perfect, but it is the best we got.
2010-06-23 03:55:20 +02:00
Jakob Bornecrantz 23a915e2cf gallium: Drop sw drm winsys
Last user went away
2010-06-23 03:43:52 +02:00
Jakob Bornecrantz 41e0f6bc2f i965g: Move bootstrap code to targets 2010-06-23 03:43:48 +02:00
Jakob Bornecrantz 0106be903a i965g: Rename winsys file 2010-06-23 03:20:45 +02:00
Jakob Bornecrantz 2b15e37348 i965g: Moved pci_id to winsys struct 2010-06-23 03:20:45 +02:00
Jakob Bornecrantz bd739e9576 target-helpers: Add inline helpers 2010-06-23 03:20:40 +02:00
Marek Olšák cbd33e7d3a mesa: fix assertion failure for GL_ALPHA FBOs 2010-06-23 01:39:26 +02:00
Marek Olšák 9ed7325848 r300g: attempt to fix texture corruption on RV505 2010-06-23 01:35:11 +02:00
Marek Olšák d84bf6d44d r300g: index buffer range checking 2010-06-23 00:20:11 +02:00
Jakob Bornecrantz e130f524a9 i915g: Revert debug hunks from last commit 2010-06-22 22:55:13 +02:00
Jakob Bornecrantz ca43b6ec9d i915g: Reduce state emission by using a index bias 2010-06-22 20:04:56 +02:00
Jakob Bornecrantz 255d4f24e0 i915g: Drop fifo code in vbuf 2010-06-22 20:04:56 +02:00
Jakob Bornecrantz 4dd742cec3 i915g: Change state code in vbuf code 2010-06-22 20:04:56 +02:00
Jakob Bornecrantz abbb1bde06 i915g: Rework debug print code 2010-06-22 20:04:55 +02:00
Jakob Bornecrantz e694f3fd48 i915g: Switch to state atoms 2010-06-22 20:04:55 +02:00
Jakob Bornecrantz ed675bb460 i915g: i915_state_sampler.c code style 2010-06-22 20:04:55 +02:00
Jakob Bornecrantz 2e7a90546d i915g: i915_state_immediate.c code style 2010-06-22 20:04:55 +02:00
Jakob Bornecrantz f93e378bfb i915g: i915_state_dynamic.c code style 2010-06-22 20:04:55 +02:00
Jakob Bornecrantz 7dce4f3c27 i915g: Create seperate option for i915g and i965g 2010-06-22 20:04:54 +02:00
Jakob Bornecrantz ed3d17e14c u_math: Add align function npot alignments 2010-06-22 20:04:54 +02:00
Jakob Bornecrantz 3a3e80ff96 llvmpipe: Ignores 2010-06-22 20:04:32 +02:00
Zack Rusin b5e381d978 llvmpipe: make geometry shaders and stream output work 2010-06-22 12:58:04 -04:00
Zack Rusin e433b73dd2 gallium: add a timestamp disjoint query
allows application to not only request the frequency of the TIME_ELAPSED
clock but also to detect if that frequency was consistent throughout the
entire bracketed range of graphics commands.
2010-06-22 12:58:04 -04:00
Zack Rusin b6c360b46c gallium: add a new query
to figure out if gpu is finished with all of the previously issues commands
2010-06-22 12:58:04 -04:00
Roland Scheidegger 583f241716 st/mesa: remove bogus assertions st_CompressedTexSubImage2D
width/height may not be a multiple of blocksize (small mip levels / npot
textures). This should be handled just fine.
Fixes #28530.
2010-06-22 13:32:25 +01:00
Marek Olšák eb7ef433bb r300g: optimize the immediate mode emission path a bit 2010-06-22 06:50:23 +02:00
Marek Olšák bd52246248 r300g: do not emit ZTOP every draw call 2010-06-22 06:50:22 +02:00
Tim Evans 64e32ffb6e swrast: fix incorrect specular highlights on backfaces
See bug 28577 for details.
NOTE: this is a candidate for the 7.8 branch.

Signed-off-by: Brian Paul <brianp@vmware.com>
2010-06-21 17:19:59 -06:00
Brian Paul b875c02668 docs: add link to 7.9 relnotes 2010-06-21 17:19:59 -06:00
Marek Olšák 59df6725af r300g: fix crash when destroying the context on r3xx-r4xx
FDO bug #28652,
2010-06-21 23:46:38 +02:00
José Fonseca 197636814e llvmpipe: s/lpfs/shader/ 2010-06-21 14:11:15 +01:00