aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
Commit message (Collapse)AuthorAgeFilesLines
* Fix build errors from mergeAlex Deucher2009-04-101-2/+2
|
* Merge branch 'radeon-rewrite' of ↵Alex Deucher2009-04-1059-567/+1298
|\ | | | | | | git+ssh://[email protected]/git/mesa/mesa into r6xx-rewrite
| * r300: fix color tilingDave Airlie2009-04-091-2/+8
| |
| * r300: reorder fog coordinate and WPOS fp attributesMaciej Cencora2009-04-093-63/+35
| | | | | | | | | | | | | | | | HW TCL path currently assumed fog, WPOS order. The order was inverted for SW TCL path. This hopefully fixes rest of fog and WPOS related bugs. Additionally fix some indentation, don't route unnecessary components of fog coordinates for performance reasons and simplify vertex attribute emitting for SW TCL path.
| * r300: fix regression from swtcl rewriteMaciej Cencora2009-04-091-7/+18
| | | | | | | | | | | | | | Fix wrong attribute emit and revert to previous behaviour of calculating VAP_OUT_VTX_FMT_1 register value. We can't use r300VAPOutputCntl1 function because it assumes that all texture coords have 4 components and that is the case for HW TCL path, but not for SW TCL.
| * Merge remote branch 'origin/master' into radeon-rewriteDave Airlie2009-04-0956-497/+1239
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/mesa/drivers/dri/r200/r200_tex.c src/mesa/drivers/dri/r300/r300_cmdbuf.c src/mesa/drivers/dri/r300/r300_context.h src/mesa/drivers/dri/r300/r300_swtcl.c src/mesa/drivers/dri/r300/r300_tex.c src/mesa/drivers/dri/r300/r300_texmem.c src/mesa/drivers/dri/r300/r300_texstate.c src/mesa/drivers/dri/radeon/radeon_tex.c
| | * intel: Avoid dri2 GetBuffers round-trips for internal Viewport calls.Eric Anholt2009-04-063-3/+10
| | | | | | | | | | | | | | | | | | This gets us the savings for driver-internal viewport calls that dd1c68f15123a889a3ce9d2afe724e272d163e32 was attempting, without relying on Xlib internals or clients handling X events.
| | * i965: Use GTT maps when available to upload vertex arrays and system VBOs.Eric Anholt2009-04-063-18/+55
| | | | | | | | | | | | | | | | | | | | | This speeds up OA on my GM45 by 21% (more than the original CPU cost of the upload path). We might still be able to squeeze a few more percent out by avoiding repeatedly mapping/unmapping buffers as we upload elements into them.
| | * intel: Clean up some a leftover from sedding of bufmgr context->screen move.Eric Anholt2009-04-061-3/+0
| | |
| | * radeon: Expose a 32 bit RGBA fbconfig even when the screen depth is 16.Michel Dänzer2009-04-061-15/+20
| | | | | | | | | | | | | | | | | | | | | Otherwise current xserver / libGL no longer expose a 32 bit RGBA GLX visual, and compiz fails. Fixes http://bugs.freedesktop.org/show_bug.cgi?id=20479 .
| | * intel: #include texgetimage.hBrian Paul2009-04-031-0/+1
| | |
| | * mesa: move glGetTexImage(), glGetCompresssedTexImage() code into new fileBrian Paul2009-04-031-0/+1
| | |
| | * mesa: rename some gl_light fields to be clearerBrian Paul2009-04-033-12/+12
| | | | | | | | | | | | | | | EyeDirection -> SpotDirection _NormDirection -> _NormSpotDirection
| | * i965: remove unused varBrian Paul2009-04-031-1/+0
| | |
| | * i965: more const buffer debug codeBrian Paul2009-04-031-50/+84
| | |
| | * i965: added brw_same_reg()Brian Paul2009-04-031-0/+7
| | |
| | * i965: s/GL_FALSE/BRW_COMPRESSION_NONE/Brian Paul2009-04-031-1/+1
| | |
| | * i965: another checkpoint commit of new constant buffer supportBrian Paul2009-04-032-65/+115
| | | | | | | | | | | | | | | Everything is in place now for using a true constant buffer for GLSL fragment shaders. Still some bugs to find though.
| | * i965: fix response length param in brw_dp_READ_4()Brian Paul2009-04-031-1/+1
| | | | | | | | | | | | We were accidentally clobbering the next register.
| | * i965: change args to get_src_reg() to prep for new constant buffer supportBrian Paul2009-04-031-79/+85
| | |
| | * i965: check-point commit of new constant buffer supportBrian Paul2009-04-035-35/+288
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Currently, shader constants are stored in the GRF (loaded from the CURBE prior to shader execution). This severly limits the number of constants and temps that we can support. This new code will support (practically) unlimited size constant buffers and free up registers in the GRF. We allocate a new buffer object for the constants and read them with "Read" messages/instructions. When only a small number of constants are used, we can still use the old method. The code works for fragment shaders only (and is actually disabled) for now. Need to do the same thing for vertex shaders and need to add the necessary code-gen to fetch the constants which are referenced by the shader instructions.
| | * i965: remove unused code for sampling a constant bufferBrian Paul2009-04-031-42/+0
| | |
| | * i965: code to setup a constant buffer samplerBrian Paul2009-04-031-0/+43
| | | | | | | | | | | | | | | This code won't actually be used and will be removed in a subsequent commit. Just committing for posterity.
| | * i965: do negation and Abs in get_src_reg_imm()Brian Paul2009-04-031-1/+6
| | | | | | | | | | | | Fixes regression seen with progs/glsl/bump.c
| | * i965: commentsBrian Paul2009-04-031-0/+5
| | |
| | * i965: code to debug/dump instruction immediatesBrian Paul2009-04-031-0/+5
| | |
| | * i965: minor code movement, new commentBrian Paul2009-04-031-1/+4
| | |
| | * i965: added new brw_dp_READ_4() functionBrian Paul2009-04-032-0/+57
| | | | | | | | | | | | Used to read float[4] vectors from the constant buffer/surface.
| | * i965: new and updated commentsBrian Paul2009-04-031-17/+29
| | |
| | * i965: comments for brw_SAMPLE()Brian Paul2009-04-031-1/+5
| | |
| | * i965: comments for sampling codeBrian Paul2009-04-031-28/+28
| | |
| | * i965: add support for float literal instruction operandsBrian Paul2009-04-031-20/+43
| | | | | | | | | | | | | | | Call the get_src_reg_imm() function when it's permissible to generate a literal value src register.
| | * i965: remove 'nr' param from get_src/dst_reg() functionsBrian Paul2009-04-031-112/+114
| | | | | | | | | | | | The value was always 1.
| | * i965: fix comment typoBrian Paul2009-04-031-1/+1
| | |
| | * i965: comments, clean-up in prepare_wm_surfaces()Brian Paul2009-04-031-11/+15
| | |
| | * i965: remove unneeded #includesBrian Paul2009-04-031-9/+0
| | |
| | * i965: formatting clean-upsBrian Paul2009-04-031-3/+4
| | |
| | * i965: comments, whitespace changesBrian Paul2009-04-031-8/+14
| | |
| | * i965: rename scratch_buffer -> scratch_bo to be consistant with other buffersBrian Paul2009-04-032-12/+12
| | |
| | * i965: fix indentationBrian Paul2009-04-031-2/+2
| | |
| | * i965: whitespace changes, commentsBrian Paul2009-04-031-13/+24
| | |
| | * dri glx: Fix dri_util::driBindContextThomas Hellstrom2009-04-021-18/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1) Don't error-check here. It's done in glx makeCurrent. 2) Allow ctx and the dri drawables to be NULL for future use. This is currently blocked in glx makeCurrent. 3) Avoid updating dri drawables unless they are completely uninitialized. Since the updating was done outside of the lock, the driver need to verify and redo it anyway. Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
| | * dri glx: Propagate driver MakeCurrent errors.Thomas Hellstrom2009-04-021-2/+1
| | | | | | | | | | | | Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
| | * dri: use BorderColor instead of _BorderChanBrian Paul2009-04-0113-51/+102
| | |
| | * intel: Avoid mapping the texture image for CopyTex{,Sub}ImageAdam Jackson2009-03-301-11/+13
| | | | | | | | | | | | | | | | | | We don't upload the pixels with the CPU in that case, so the map will only serve as a way of triggering cache flushes over a bunch of data we don't touch.
| | * i965: srgb texture fixesRoland Scheidegger2009-03-283-10/+27
| | | | | | | | | | | | | | | | | | | | | | | | i965 can either do SRGBA8_REV format or SARGB8 format, but not SRGBA8. Could add SRGBA8_REV support to mesa, but simply use SARGB8 for now. While here, also add true srgb luminance / luminance_alpha support - unfortunately the published docs fail to mention which asics support this, tested on g43 so assume this works on any g4x.
| | * i965: add support for signed rgba texture formatRoland Scheidegger2009-03-283-0/+9
| | |
| | * fix various small intel blitter issuesRoland Scheidegger2009-03-281-11/+12
| | | | | | | | | | | | | | | | | | use color format constants instead of magic numbers remove handling of cpp 0 or 3 (neither is possible) in various places don't misconfigure 8 bit surface blits as rgb565
| | * r300: cleanup swtcl a littleMaciej Cencora2009-03-251-9/+1
| | | | | | | | | | | | | | | | | | - remove disabled code - silence compiler warnings (uinitialized values) - remove unneeded code
| | * Convert u_int*_t to C99 standard uint*_tAlan Coopersmith2009-03-251-1/+1
| | | | | | | | | | | | Signed-off-by: Alan Coopersmith <[email protected]>