Commit Graph

12188 Commits

Author SHA1 Message Date
Brian Paul 3f4e80c06b comments 2008-04-11 08:59:39 -06:00
Michel Dänzer 23635510e3 Get the default GLXPixmap texture target from the server when appropriate.
Fixes compiz with direct rendering when both GLX_TEXTURE_2D_EXT and
GLX_TEXTURE_RECTANGLE_EXT are supported for a GLXPixmap and the
application didn't specify the texture target as a GLX drawable attribute
when creating the GLX drawable.
2008-04-10 15:47:46 -04:00
Brian 842b8b4c33 more make clean items 2008-04-09 22:30:42 -06:00
Brian 26f0b8f506 use InitUniforms() 2008-04-09 22:30:42 -06:00
Brian 2dca3373ae Replace duplicated code with new shaderutil.c functions 2008-04-09 22:30:42 -06:00
Brian 90caba3d76 shader utility functions 2008-04-09 22:30:42 -06:00
Hasso Tepper f9c8af31c5 Add support for dfbsd to mklib script. 2008-04-09 11:03:05 -07:00
Hasso Tepper 43887cf396 Add $(X11_INCLUDES) to shut makedepend up. 2008-04-09 10:56:12 -07:00
Hasso Tepper 9f8df2d07f autoconf: Add dfbsd support. 2008-04-09 10:51:21 -07:00
Jie Luo 2771862adc Handle fbconfig comparison correctly for attributes the X server didn't send. 2008-04-08 19:17:06 -04:00
Kristian Høgsberg c016f329ab Only convert configs if screen creation was successful.
Thanks to Adam Jackson for pointing it out.
2008-04-08 18:31:07 -04:00
Michel Dänzer da3e48186d r300: Fix r300VAPInputRoute{0,1} for big endian platforms. 2008-04-07 10:28:42 +02:00
Brian 5d73502625 7.0.3 updates 2008-04-04 19:28:33 -06:00
Brian fad7933c44 updated w/ 7.0.3 release 2008-04-04 19:28:33 -06:00
Brian 6eddb4cb20 import 7.0.3 relnotes from 7.0 branch 2008-04-04 19:28:33 -06:00
Brian c3240b5ff8 added glGetActiveUniform_func 2008-04-04 19:28:33 -06:00
Brian 40905c909d mesa: add missing glPush/PopMatrix() calls 2008-04-04 19:28:33 -06:00
Brian ae0ea14ff6 mesa: add missing glPush/PopMatrix() calls 2008-04-04 19:28:33 -06:00
Brian 1757acc293 rewrite some of the mat*mat, mat*vec intrinsics
Also, remove obsolete matrix codegen code.
2008-04-03 21:51:31 -06:00
Brian 96b4ac05be silence warning 2008-04-03 20:12:32 -06:00
Kristian Høgsberg e786924bf0 Pick up dri2proto from the standard proto header include path. 2008-04-02 19:17:31 -04:00
Kristian Høgsberg dc836edf49 Initialize GLX_EXT_texture_from_pixmap attributes correctly. 2008-04-02 19:05:43 -04:00
Roland Scheidegger 28dfb0613b fix mistakenly set ATIFragmentShader._Enabled bit (bug 15269) 2008-04-01 23:24:11 +02:00
Brian 5c4ca968fa added some missing calls to _mesa_enable_x_y_extensions() 2008-04-01 08:43:34 -06:00
Dan Nicholson b645942df9 Use AC_CHECK_PROGS to find alternate make programs
The autoconf macro AC_PATH_PROGS handles the case of searching for
multiple program names already, so we don't need to open code it. Also
changed the search to AC_CHECK_PROGS so that it doesn't set the full
path unless the user specified. Finally, report back the found value at
the end for what the user should run.
2008-03-31 17:00:00 -07:00
Markus Amsler 3ea80c1128 fix parsing bug involving comments at the end of ARB v/f programs 2008-03-31 14:58:48 -06:00
Kristian Høgsberg e82dd8c6e1 DRI interface changes and DRI2 direct rendering support.
Add DRI2 direct rendering support to libGL and add DRI2 client side
protocol code.  Extend the GLX 1.3 create drawable functions in
glx_pbuffer.c to call into the DRI driver when possible.

Introduce __DRIconfig, opaque struct that represents a DRI driver
configuration.  Get's rid of the open coded __GLcontextModes in the
DRI driver interface and the context modes create and destroy
functions that the loader was requires to provide.  glcore.h is no
longer part of the DRI driver interface.  The DRI config is GL binding
agnostic, that is, not specific to GLX, EGL or other bindings.

The core API is now also an extension, and the driver exports a list
of extensions as the symbol __driDriverExtensions, which the loader
must dlsym() for.  The list of extension will always include the DRI
core extension, which allows creating and manipulating DRI screens,
drawables and contexts.  The DRI legacy extension, when available,
provides alternative entry points for creating the DRI objects that
work with the XF86DRI infrastructure.

Change DRI2 client code to not use drm drawables or contexts.  We
never used drm_drawable_t's and the only use for drm_context_t was as
a unique identifier when taking the lock.  We now just allocate a
unique lock ID out of the DRILock sarea block.  Once we get rid of the
lock entirely, we can drop this hack.

Change the interface between dri_util.c and the drivers, so that the
drivers now export the DriverAPI struct as driDriverAPI instead of the
InitScreen entry point.  This lets us avoid dlsym()'ing for the DRI2
init screen function to see if DRI2 is supported by the driver.
2008-03-31 16:51:26 -04:00
Xiang, Haihao 63d8a8417d mesa: Free all shader program data before deleting all
shader/shader program objects to avoid memory access error.
2008-03-31 17:17:34 +08:00
Xiang, Haihao aef47c4dc8 Revert "mesa: separate shader program object from shader object." (bug#15244)
This reverts commit 3ffd11f71d.
2008-03-31 16:27:47 +08:00
Xiang, Haihao d30d9e42b7 i915: texture object's lod bias. fix bug #15192 2008-03-31 13:45:06 +08:00
Markus Amsler d9367842e5 r300: Copy-and-paste error from the vertex program branch. 2008-03-30 16:12:47 +00:00
Markus Amsler 85e816882d r300: Take PROGRAM_CONSTANT into account.
This bug was introduced by commit 978145a075.
2008-03-30 16:10:47 +00:00
Oliver McFadden 3e0797f3b7 Merge branch 'r300-vertprog-branch' of ssh://people.freedesktop.org/~z3ro/mesa 2008-03-29 14:46:32 +00:00
Brian 635e964712 fix texture/renderbuffer mix-up in test_attachment_completeness() 2008-03-28 13:24:39 -06:00
Xiang, Haihao 184cf464f4 i965: depth offset on glPolygonMode(GL_LINE/GL_POINT) 2008-03-28 17:32:45 +08:00
Dave Airlie 6054788f36 r300: finish conversion of RS_INST regs 2008-03-28 13:16:33 +11:00
Dave Airlie a9802328cd r300: move to using RS_INST names 2008-03-28 13:06:28 +11:00
Brian 7d2b6a0466 consolidate some parsing functions that were pretty much identical for vertex/fragment programs 2008-03-27 16:17:37 -06:00
Brian 21454f8636 when negating scalar src args, use NEGATE_XYZW, not NEGATE_X
This makes things easier on the back-end when generating GPU code.
cherry-picked from gallium-0.1
2008-03-27 16:06:36 -06:00
Brian 978145a075 Set param_var->param_binding_type = PROGRAM_CONSTANT
cherry-picked from gallium-0.1
2008-03-27 16:06:36 -06:00
Eric Anholt 227af94cce Add a couple of test apps for line/unfilled polygon clipping. 2008-03-27 11:57:08 -07:00
Michal Wajdeczko 0500467044 [965] Fix massively broken state cache dirty flagging.
It was flagging a last_bo update even when last_bo didn't change, but
another part was failing to update last_bo when it should have.
2008-03-26 13:43:16 -07:00
Michal Wajdeczko 76430815a7 [intel] Use mesa texmemory functions to allocate teximage Data.
Failure to consistently do so resulted in mismatched aligned versus
unaligned alloc/free.
2008-03-26 13:33:34 -07:00
Eric Anholt b4cbf6983e [965] Don't let the negate flags of src0 affect 1 constants in precalc_dst/lit
This patch is a variant of a submission by Michal Wajdeczko to fix
oglconform fpalu failures.
2008-03-26 13:23:43 -07:00
Michal Wajdeczko 13a6f73a64 [965] Correctly set read mask for OPCODE_SWZ in pass1.
While OPCODE_SWZ has usually been optimized away in pass0, it may still
exist if a SWZ with dst saturate was emitted in pass_fp.  Fixes an error
in oglconform fpalu.c.
2008-03-26 13:00:03 -07:00
Eric Anholt 5cc56cbad8 [965] Clean up whitespace and dead code from do_unfilled change. 2008-03-26 12:59:17 -07:00
Oliver McFadden e49ec6e2a4 r300: Indented the vertex program code... 2008-03-26 08:01:13 +00:00
Oliver McFadden 82770b8c83 r300: Cleaned up the default vertex program code with longer lines. 2008-03-26 07:53:16 +00:00
Oliver McFadden a2c1aad27d r300: Removed the last of the duplicate vertex program macros. 2008-03-26 07:28:29 +00:00
Oliver McFadden 863ab98ac7 r300: Added Copyright lines to the vertex program code. 2008-03-26 07:09:21 +00:00