Oliver McFadden [Wed, 26 Mar 2008 07:53:16 +0000 (07:53 +0000)]
r300: Cleaned up the default vertex program code with longer lines.
Oliver McFadden [Wed, 26 Mar 2008 07:28:29 +0000 (07:28 +0000)]
r300: Removed the last of the duplicate vertex program macros.
Oliver McFadden [Wed, 26 Mar 2008 07:09:21 +0000 (07:09 +0000)]
r300: Added Copyright lines to the vertex program code.
Oliver McFadden [Wed, 26 Mar 2008 06:31:33 +0000 (06:31 +0000)]
r300: Renamed the Mesa opcode translation functions.
Oliver McFadden [Wed, 26 Mar 2008 06:24:48 +0000 (06:24 +0000)]
r300: Renamed the destination-and-opcode/source macros to more appropriate names.
Oliver McFadden [Mon, 24 Mar 2008 12:46:56 +0000 (12:46 +0000)]
r300: Merged the constant zero/one source macros.
Oliver McFadden [Mon, 24 Mar 2008 12:46:40 +0000 (12:46 +0000)]
r300: Merged the Vector and Math Engine opcode macros.
Oliver McFadden [Sun, 2 Mar 2008 08:36:19 +0000 (08:36 +0000)]
r300: Corrected a bug with the SUB instruction.
Oliver McFadden [Sun, 2 Mar 2008 06:28:53 +0000 (06:28 +0000)]
r300: Corrected a bug with the MAD instruction.
The PVS_VECTOR_OPCODE macro should be modified to support macro instructions,
too.
Oliver McFadden [Fri, 29 Feb 2008 05:48:31 +0000 (05:48 +0000)]
r300: Added the PVS_SRC_OPERAND documentation from AMD.
Oliver McFadden [Fri, 29 Feb 2008 05:01:02 +0000 (05:01 +0000)]
r300: Added the PVS_OP_DST_OPERAND documentation from AMD.
Oliver McFadden [Thu, 28 Feb 2008 11:32:53 +0000 (11:32 +0000)]
r300: Added a TODO comment for registers missing from AMD's documentation.
Oliver McFadden [Thu, 28 Feb 2008 11:16:52 +0000 (11:16 +0000)]
r300: Moved the vertex program shift/mask defines into the appropriate file.
Oliver McFadden [Thu, 28 Feb 2008 11:07:08 +0000 (11:07 +0000)]
r300: Indented the vertex program code with longer lines.
Oliver McFadden [Thu, 28 Feb 2008 10:25:58 +0000 (10:25 +0000)]
r300: Moved the PREFER_DP4 define near the position invariant function.
Oliver McFadden [Thu, 28 Feb 2008 10:13:29 +0000 (10:13 +0000)]
r300: Added a TODO comment for the MAD opcodes.
Oliver McFadden [Thu, 28 Feb 2008 10:09:02 +0000 (10:09 +0000)]
r300: Use the VE_ADD hardware opcode for the SUB opcode.
Oliver McFadden [Thu, 28 Feb 2008 10:04:54 +0000 (10:04 +0000)]
r300: Use the VE_MULTIPLY hardware opcode for the MUL opcode.
Oliver McFadden [Thu, 28 Feb 2008 09:53:29 +0000 (09:53 +0000)]
r300: Cleaned up the XPD opcode temporary register usage.
Oliver McFadden [Thu, 28 Feb 2008 09:41:47 +0000 (09:41 +0000)]
r300: Cleaned up extra white space.
Oliver McFadden [Thu, 28 Feb 2008 09:39:09 +0000 (09:39 +0000)]
r300: Prefer to use the VE_ADD for simple MOV style opcodes.
The VE_MULTIPLY_ADD has further restrictions on reading temporary memory which
may complicate things. See AMD's documentation.
Oliver McFadden [Thu, 28 Feb 2008 09:27:15 +0000 (09:27 +0000)]
r300: Removed the (undocumented) MAD_2 opcode.
This opcode is likely a mistake from reverse engineering. MAD_2 isn't included
in AMD's documentation, and my testing reviles there is no problem using the
documented MAD opcode.
Oliver McFadden [Thu, 28 Feb 2008 09:16:48 +0000 (09:16 +0000)]
r300: Cleaned up the MAD/MAD_2 opcode selection.
Oliver McFadden [Wed, 27 Feb 2008 12:36:33 +0000 (12:36 +0000)]
r300: Renamed some misleading macro arguments.
Oliver McFadden [Wed, 27 Feb 2008 04:23:11 +0000 (04:23 +0000)]
r300: Cleaned up the vertex program macros.
Oliver McFadden [Wed, 27 Feb 2008 03:15:53 +0000 (03:15 +0000)]
r300: Removed duplicate component selection defines.
Oliver McFadden [Wed, 27 Feb 2008 02:34:26 +0000 (02:34 +0000)]
r300: Removed duplicate source register class defines.
Oliver McFadden [Wed, 27 Feb 2008 02:11:29 +0000 (02:11 +0000)]
r300: Renamed the vertex program source register macro.
Oliver McFadden [Wed, 27 Feb 2008 02:10:13 +0000 (02:10 +0000)]
r300: Removed the (obsolete) special source register macros.
Oliver McFadden [Wed, 27 Feb 2008 02:06:40 +0000 (02:06 +0000)]
r300: Cleaned up the special vertex program source register macros.
Oliver McFadden [Mon, 25 Feb 2008 13:16:05 +0000 (13:16 +0000)]
r300: Added the vertex program swizzle (aka selection) defines.
Oliver McFadden [Mon, 25 Feb 2008 13:09:15 +0000 (13:09 +0000)]
r300: Converted to the new src/dest register defines.
Oliver McFadden [Mon, 25 Feb 2008 12:51:56 +0000 (12:51 +0000)]
r300: Removed an obsolete comment from the vertex program header file.
Oliver McFadden [Mon, 25 Feb 2008 12:50:46 +0000 (12:50 +0000)]
r300: Converted to the new Math Engine defines.
Oliver McFadden [Mon, 25 Feb 2008 12:39:36 +0000 (12:39 +0000)]
r300: Added the Math Engine opcode macro.
Oliver McFadden [Mon, 25 Feb 2008 12:37:26 +0000 (12:37 +0000)]
r300: Renamed the Vector Engine opcode macro.
Oliver McFadden [Mon, 25 Feb 2008 12:35:55 +0000 (12:35 +0000)]
r300: Converted to the new Vector Engine defines.
Oliver McFadden [Mon, 25 Feb 2008 12:26:48 +0000 (12:26 +0000)]
r300: Removed the duplicate dest register defines.
Oliver McFadden [Mon, 25 Feb 2008 12:15:22 +0000 (12:15 +0000)]
r300: Removed the duplicate "easy" vertex program macros.
Oliver McFadden [Mon, 25 Feb 2008 12:22:08 +0000 (12:22 +0000)]
r300: Added the vertex program src/dest register defines.
Oliver McFadden [Mon, 25 Feb 2008 12:08:09 +0000 (12:08 +0000)]
r300: Added the Vector Engine and Math Engine defines from AMD's documentation.
Oliver McFadden [Mon, 25 Feb 2008 11:56:43 +0000 (11:56 +0000)]
r300: Moved the vertex and fragment program macros into the appropriate files.
Roland Scheidegger [Sat, 1 Mar 2008 01:56:08 +0000 (02:56 +0100)]
state.depth.range alpha value should be 1, not 0 (bug #14733)
Kristian Høgsberg [Fri, 29 Feb 2008 21:42:29 +0000 (16:42 -0500)]
Update libGL DRI loader to latest DRI interface changes.
Kristian Høgsberg [Fri, 29 Feb 2008 20:33:40 +0000 (15:33 -0500)]
glxgears: oops, remove accidental commit of glFinish() hack.
Kristian Høgsberg [Thu, 28 Feb 2008 15:32:28 +0000 (10:32 -0500)]
Use __DRIextension mechanism providing loader functionality to the driver.
Instead of passing in a fixed struct, the loader now passes in a list
of __DRIextension structs, to advertise the functionality it can provide
to the driver. Each extension is individually versioned and can be
extended or phased out as the interface develops.
Kristian Høgsberg [Tue, 26 Feb 2008 04:37:23 +0000 (23:37 -0500)]
Reduce the versioning madness required to create a DRI2 screen.
Right now the DRI2 screen constructor takes 3 different versions:
DRI, DDX and DRM. This is mostly useless, though:
DRI: The DRI driver doesn't actually care about the DRI protocol,
it only talks to the loader, which in turn speaks DRI protocol. Thus,
the DRI protocol version is of not interest to the DRI driver, but it
needs to know what functionality the loader provides. At this point
that's reflected in the __DRIinterfaceMethods struct and the
internal_version integer.
DDX: The DDX version number is essentially used to track extensions
to the SAREA. With DRI2 the SAREA consists of a number of versioned,
self-describing blocks, so the DDX version is no longer interesting.
DRM: We have the fd, lets just ask the kernel ourselves.
Kristian Høgsberg [Fri, 29 Feb 2008 20:04:26 +0000 (15:04 -0500)]
intel: Set the lock flag early to avoid deadlock.
Another regression from the intel_context.c merge.
Xiang, Haihao [Fri, 29 Feb 2008 03:15:02 +0000 (11:15 +0800)]
i965: use _Current pointer instead of Current pointer.
fix double free issue(bug#14710). It also corrects glsl/bitmap demo behavior.
Eric Anholt [Fri, 29 Feb 2008 00:04:54 +0000 (16:04 -0800)]
[965] Fix conditional sequencing to allow the frame_buffer_texobj case.
Previously the frame_buffer_texobj case would have been bound as a normal
texture, at best resulting in no surface data being associated with it.
Eric Anholt [Thu, 28 Feb 2008 23:45:46 +0000 (15:45 -0800)]
[intel] Bug #14575: Unmap buffers when deleting/dataing as required.
Otherwise, we would assertion error when doing the final unreference of the
buffer with an outstanding map (catching the memory leak).
Christoph Brill [Thu, 28 Feb 2008 21:33:46 +0000 (22:33 +0100)]
r300: R5xx and R3xx use different registers for RS_IP and RS_INST
These changes are taken from the xf86-video-ati driver. They update the header
file accordingly and also remove some UNKOWN variables.
Eric Anholt [Thu, 28 Feb 2008 21:18:12 +0000 (13:18 -0800)]
[965] Bug #9151: make fragment.position return window coords not screen coords.
Eric Anholt [Wed, 27 Feb 2008 19:01:28 +0000 (11:01 -0800)]
[965] Fix serious copy'n'paste failure in brw state dumping.
Brian [Thu, 28 Feb 2008 15:03:04 +0000 (08:03 -0700)]
added git on Windows section
Brian [Thu, 28 Feb 2008 01:13:21 +0000 (18:13 -0700)]
a few words about how the cell driver works.
Xiang, Haihao [Thu, 28 Feb 2008 13:27:16 +0000 (21:27 +0800)]
mesa: separate shader program object from shader object.
Currently a callback delete_shader_cb is used for deleting shader
and shader program objects. Mesa detaches all attached shaders in
_mesa_free_shader_program_data when deleting shader program objects. However
it is likely that these shaders have been freed in _mesa_free_shader,
which will result in unexpected behaviour. This fix uses a single callback for
shader program objects and deletes shader program objects before shader objects.
Zou Nan hai [Thu, 28 Feb 2008 08:49:38 +0000 (16:49 +0800)]
[intel] fix compressed image height
José Fonseca [Thu, 28 Feb 2008 07:34:32 +0000 (16:34 +0900)]
Convert crlf->lf line endings.
Windows/DOS users should enable core.autocrlf from now on:
git config --global core.autocrlf true
Jose Fonseca [Thu, 28 Feb 2008 03:34:01 +0000 (12:34 +0900)]
Disable autocrlf for Visual Studio project files.
Brian [Thu, 28 Feb 2008 01:01:37 +0000 (18:01 -0700)]
document cell -DSPU_MAIN_PARAM_LONG_LONG flag
Christoph Brill [Wed, 27 Feb 2008 21:06:38 +0000 (22:06 +0100)]
r300: properly handle GL_POINT in glPolygonMode
Until now the polygon mode was completely turned of when you used
GL_POINT. For me it looked buggy to completely disable the polygon
mode for FrontMode and BackMode if any of these was GL_POINT.
Kristian Høgsberg [Wed, 27 Feb 2008 16:19:29 +0000 (11:19 -0500)]
intel: Always use intelInitExtensions() for initializing extensions.
Markus Amsler [Wed, 27 Feb 2008 01:06:17 +0000 (02:06 +0100)]
r300: add artificial output to match fragment program input
Markus Amsler [Wed, 27 Feb 2008 01:04:06 +0000 (02:04 +0100)]
mesa: set input read only on success
Kristian Høgsberg [Tue, 26 Feb 2008 22:57:41 +0000 (17:57 -0500)]
i965: Setup framebuffer texture in meta_draw_region.
With DRI2 we there is no screen region until a drawable is bound to
the context. Set up the framebuffer texture in meta_draw_region instead
which should also handle the case where the draw region changes as a
result of resizing a redirected window or resizing the screen.
Eric Anholt [Tue, 26 Feb 2008 21:28:51 +0000 (13:28 -0800)]
[965] Don't segfault on INTEL_DEBUG=batch when a surface buffer is NULL.
Eric Anholt [Thu, 21 Feb 2008 18:42:07 +0000 (10:42 -0800)]
[965] remove dead brw_parameter_list_state_flags.
This was replaced by Mesa core code.
Christoph Brill [Tue, 26 Feb 2008 21:10:54 +0000 (22:10 +0100)]
[r300] fix wow-pinkness regression. Fixed by Markus Amsler
Christoph Brill [Tue, 26 Feb 2008 20:40:55 +0000 (21:40 +0100)]
[r300] Document based on chapter 10.4 and 10.5
This commit adds most of the graphics backend registers and of the rasterizer
registers. Again, some minor bugs were found and marked with TODO or even
fixed.
Zou Nan hai [Tue, 26 Feb 2008 09:20:12 +0000 (17:20 +0800)]
[i915] fix texture size exceed limit case when running celestia
Thomas Hellstrom [Tue, 26 Feb 2008 08:19:27 +0000 (09:19 +0100)]
[intel] Handle -EAGAINs correctly in execbuffer.
Dont stop on fence creation errors.
Kristian Høgsberg [Tue, 26 Feb 2008 03:24:09 +0000 (22:24 -0500)]
A few more fixes to the dlsym() fix.
Argh, seriously, I did test that, I just forgot to amend the commit
before pushing.
Dave Airlie [Tue, 26 Feb 2008 02:28:45 +0000 (12:28 +1000)]
dri2: dlsym requires some quotes..
Kristian Høgsberg [Tue, 26 Feb 2008 01:02:25 +0000 (20:02 -0500)]
Use dlsym() to avoid referencing __dri2DriverInitScreen.
Sort-of a stop-gap workaround. There are a couple of nicer ways to
do this that doesn't require dlfcn.h, but they're more invasive.
Kristian Høgsberg [Mon, 25 Feb 2008 23:50:26 +0000 (18:50 -0500)]
autoconf: Add gcc search patch to MKDEP_OPTIONS to eliminate warnings.
Also, use -include to avoid error message when make initially fails to
include the non-existent depend file.
Kristian Høgsberg [Mon, 25 Feb 2008 22:34:24 +0000 (17:34 -0500)]
intel: Add missing include file to silence last couple of warnings.
Kristian Høgsberg [Mon, 25 Feb 2008 22:28:09 +0000 (17:28 -0500)]
intel: Initialize color and spec arrays in LOCAL_VARS macro.
Avoids spamming compilation output with tons of warnings about
use of possibly uninitialized variables.
Kristian Høgsberg [Mon, 25 Feb 2008 21:52:35 +0000 (16:52 -0500)]
Change GetCompressedTexImage in dd_function_table to not take const pointers.
They're changed by the intel driver implementation and thus not const.
Fixes compilation warning.
Kristian Høgsberg [Mon, 25 Feb 2008 21:14:37 +0000 (16:14 -0500)]
Remove GetMSC DriverAPI function.
The DriverAPI is internal to the DRI drivers and GetDrawableMSC
obsoletes GetMSC. Also, since the DRI driver interface has not yet
been released, just drop the getMSC function from the DRI interface
instead using the ABI preserving version mechanism.
Finally, using void pointer privates in the DRI interface is not allowed,
always pass the actual types around (__DRIdrawable in this case) to
enhance type safety and readability of the code.
Kristian Høgsberg [Mon, 25 Feb 2008 20:36:42 +0000 (15:36 -0500)]
Remove now unused setTexOffset from __DriverAPIRec.
Oliver McFadden [Mon, 25 Feb 2008 23:18:15 +0000 (23:18 +0000)]
r300: Corrected a cache flush bug in r300EmitCacheFlush.
Corrects commit
74ae5a875d6b3f1ffea2ac09c6ef0062d4980f15.
Oliver McFadden [Mon, 25 Feb 2008 22:48:26 +0000 (22:48 +0000)]
r300: Moved the state code into separate functions.
Christoph Brill [Mon, 25 Feb 2008 22:20:23 +0000 (23:20 +0100)]
[r300] revert complete stupid changes
Christoph Brill [Mon, 25 Feb 2008 22:08:02 +0000 (23:08 +0100)]
[r300] Document registers completed 10.1 to 10.3
Christoph Brill [Mon, 25 Feb 2008 22:04:17 +0000 (23:04 +0100)]
[r300] Add more register from the AMD spec
Christoph Brill [Mon, 25 Feb 2008 21:55:13 +0000 (22:55 +0100)]
[r300] Document POLY_MODE and add some TODOs that might have triggered some bugs
Christoph Brill [Mon, 25 Feb 2008 21:45:36 +0000 (22:45 +0100)]
[r300] Document some registers in the POINT area
Christoph Brill [Mon, 25 Feb 2008 21:36:16 +0000 (22:36 +0100)]
[r300] Further document and add register definitions (found bugs in LINE handling)
Christoph Brill [Mon, 25 Feb 2008 20:48:25 +0000 (21:48 +0100)]
[r300] Sync fog color register names
Christoph Brill [Mon, 25 Feb 2008 20:44:11 +0000 (21:44 +0100)]
[r300] Sync fog register names to the AMD spec
Christoph Brill [Mon, 25 Feb 2008 20:35:13 +0000 (21:35 +0100)]
[r300] Further document FG_ALPHA_FUNC (renamed from R300_PP_ALPHA_TEST) and finally add some information to R300_RB3D_DSTCACHE_CTLSTAT
Christoph Brill [Mon, 25 Feb 2008 20:04:23 +0000 (21:04 +0100)]
[r300] Document R300_RB3D_COLORMASK properly and rename it to RB3D_COLOR_CHANNEL_MASK
Christoph Brill [Mon, 25 Feb 2008 19:54:23 +0000 (20:54 +0100)]
[r300] Add register definitions based on AMD spec starting with chapter 10
Christoph Brill [Mon, 25 Feb 2008 19:30:40 +0000 (20:30 +0100)]
[r300] Add some more register from the AMD spec in the area of AARESOLVE
Christoph Brill [Mon, 25 Feb 2008 19:24:00 +0000 (20:24 +0100)]
[r300] Sync the names for Z-Buffer registers with the AMD spec
This patch tries to get the Z-Buffer register names in sync with the AMD spec
so that talking to AMD engineers is much simpler.
Christoph Brill [Mon, 25 Feb 2008 19:20:59 +0000 (20:20 +0100)]
[r300] Add more struct names for r300_hw_state
Christoph Brill [Mon, 25 Feb 2008 19:18:10 +0000 (20:18 +0100)]
[r300] rename all unkown structs r300_hw_state to readable names
Christoph Brill [Mon, 25 Feb 2008 19:15:20 +0000 (20:15 +0100)]
[r300] Add RB3D_DISCARD_SRC_PIXEL_LTE_THRESHOLD and some HyperZ defintions
Christoph Brill [Mon, 25 Feb 2008 19:11:46 +0000 (20:11 +0100)]
[r300] Replace more magic number by register definitions from AMD