summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* radeon: port more front fixes from intel.Dave Airlie2009-07-143-1/+24
| | | | Port fixes to read buffer from front.
* radeon/r200: fix color masking under dri2Dave Airlie2009-07-142-13/+37
| | | | Need to retrieve the bits from the rrb not from screen struct
* radeon: Use Stencil.Enabled instead of Stencil._Enabled in DrawBuffers.Dave Airlie2009-07-141-2/+1
| | | | | | The _Enabled field isn't updated at the point that DrawBuffers is called, and the Driver.Enable() function does the testing for stencil buffer presence anyway.
* radeon/fbo: stencil bits fix from Michel in intel fbo codeDave Airlie2009-07-141-0/+1
|
* i965: add support for new chipsetsXiang, Haihao2009-07-1333-149/+823
| | | | | | | | | | 1. new PCI ids 2. fix some 3D commands on new chipset 3. fix send instruction on new chipset 4. new VUE vertex header 5. ff_sync message (added by Zou Nan Hai <[email protected]>) 6. the offset in JMPI is in unit of 64bits on new chipset 7. new cube map layout
* r300: move fallback warnings inside fallback debuggingDave Airlie2009-07-121-1/+2
| | | | random output is bad
* r300: fix clear mask to not use sw if not necessaryDave Airlie2009-07-121-0/+2
|
* radeon: Fix crash when rendering to incomplete texture and other formatsNicolai Hähnle2009-07-121-11/+40
| | | | | | | | | | | | It is possible to bind texture images of an incomplete mipmapped texture. Software fallbacks in this case incorrectly tried to mmap the entire texture. Additionally, add span functions for 1555 and 4444 formats. This fixes crashes in piglit's fbo-readpixels test; unfortunately, the test itself still fails - this needs to be investigated. Signed-off-by: Nicolai Hähnle <[email protected]>
* radeon: update clear code from Intel codebase.Dave Airlie2009-07-122-35/+74
| | | | | | This updates some of the clear code from Intel gives a 5x clearspd perf for me here. played openarena also, not sure if the viewport changes broke anything,
* radeon: fbo fix firecube crashesDave Airlie2009-07-121-0/+14
| | | | it might still be misrendering not sure
* radeon: Fix scissor rectangle calculation when rendering to FBO.Michel Dänzer2009-07-111-3/+8
| | | | fgl_glxgears -fbo runs, though the gears don't look right yet.
* radeon: enable GL_NV_texture_rectangle under dri2.Dave Airlie2009-07-111-1/+1
|
* radeon: set texture in state properly.Dave Airlie2009-07-112-3/+5
| | | | make sure to turn off when no texture is used in hw
* radeon: make swtcl emit size biggerDave Airlie2009-07-111-1/+1
|
* Merge branch 'mesa_7_5_branch'Brian Paul2009-07-092-7/+9
|\
| * glsl: do const parameter optimization for array element actual parametersBrian Paul2009-07-091-2/+3
| | | | | | | | | | | | | | | | | | | | When a function parameter is const-qualified we can avoid making a copy of the actual parameter (we basically do a search/replace when inlining). This is now done for array element params too, resulting in better code (fewer MOV instructions). We should allow some other types of function arguments here but let's be conservative for the moment.
| * glsl: fix incorrect indexing for gl_TextureMatrix[i][j]Brian Paul2009-07-091-5/+6
| | | | | | | | | | The two indexes were mixed up when accessing a row of a matrix in an array of matrices.
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-051-3/+12
|\|
| * mesa: only use fallback texture when using shaders, not fixed-function (take ↵Brian Paul2009-07-071-7/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | two) The semantics are a little different for shaders vs. fixed-function when trying to use an incomplete texture. The fallback texture returning (0,0,0,1) should only be used with shaders. For fixed function, the texture unit is truly disabled/ignored. Fixes glean fbo test regression. (cherry picked from commit 01e16befd4809e3e93ee7855a4a5d7df9fe010d9) (cherry picked from commit 51325f44d1e7e62b47795a79f8038d10dc5bc30b) [anholt: squashed these two together from master, skipping the mess in between]
| * gallium: fixup register indexes for fog/frontface/point coordZack Rusin2009-07-071-3/+12
| |
* | glx: death to RCS tagRALOVICH, Kristóf2009-07-081-1/+0
| |
* | r300g: Remove VAP_CNTL_STATUS from invariant state.Corbin Simpson2009-07-081-6/+1
| | | | | | | | Seriously.
* | r300g: Disable MSPOS registers for glisse's CS security checker.Corbin Simpson2009-07-081-4/+7
| | | | | | | | These will come back in someday, when we can properly use them.
* | r300-gallium: Unify sampler and texture emit.Corbin Simpson2009-07-083-39/+26
| | | | | | | | They have to cross into each other's registers.
* | r300-gallium: Mipmap setup.Corbin Simpson2009-07-082-10/+19
| | | | | | | | (cherry picked from commit 88c01a15da5639dd68a6a0133724994cb66f1316)
* | r300g: Add endian fix to vertex fetcher setup.Corbin Simpson2009-07-081-2/+9
| | | | | | | | As reported and initially tested by MrCooper.
* | gallium: Add endian detection to p_config.Corbin Simpson2009-07-081-0/+13
| |
* | r300: fix regression introduced by ca13937ef97c7779f639dcfc95b3798a11de01bdMaciej Cencora2009-07-081-1/+1
| | | | | | | | | | | | Stride == 0 means that we value for first vertex should be copied to every other vertices (e.g. constant color). This fixes glean/vertProg1 and sauerbraten with enabled shaders.
* | radeon: fix copy and paste typoMaciej Cencora2009-07-081-1/+1
| |
* | mesa/vbo: always recalculate min_index and max_index when splitting verticesMaciej Cencora2009-07-081-26/+10
| |
* | intel: Fix flipped Y for glDrawPixels(GL_STENCIL_INDEX) to window system.Eric Anholt2009-07-071-5/+17
| | | | | | | | | | Even after fixing bugs in this code, it doesn't make me feel any cleaner. Fixes piglit stencil-drawpixels.
* | intel: Fall back on glCopyPixels(GL_DEPTH) or GL_STENCIL.Eric Anholt2009-07-071-0/+6
| |
* | i965: Remove BRW_NEW_INPUT_VARYINGEric Anholt2009-07-073-10/+1
| | | | | | | | This state flag has been unused since the ffvertex_prog move to core.
* | Cap array elements at 0 when passed an invalid pointer for an array object.Eric Anholt2009-07-071-0/+10
| | | | | | | | | | | | | | Otherwise, a pointer greater than the size would underflow and give a large maximum element. Reviewed-by: Brian Paul <[email protected]> (previous version)
* | Merge branch 'mesa_7_5_branch'Jakob Bornecrantz2009-07-0413-160/+362
|\|
| * gallium: Fixes for clobbering stencil values in combined depth/stencil textures.Michel Dänzer2009-07-073-11/+64
| | | | | | | | | | Also fix one case where a 32 bit depth value was incorrectly converted to a combined depth/stencil value.
| * GLX/DRI1: Mark GLX visuals with depth != screen depth non-conformant.Michel Dänzer2009-07-071-0/+23
| | | | | | | | | | Such visuals are subject to automatic compositing in the X server, so DRI1 can't render to them properly.
| * gallium: Only set FRONT_STATUS_COPY_OF_BACK if there is a back buffer.Michel Dänzer2009-07-071-1/+2
| | | | | | | | Fixes potential crash when SwapBuffers is called but there's no back buffer.
| * gallium: more fog extraction fixesZack Rusin2009-07-063-25/+39
| | | | | | | | | | fix the cases when fog coord/front face/point coord are used in the same shader.
| * wgl: Make the stw_framebuffer destructions threadsafe.José Fonseca2009-07-065-82/+186
| | | | | | | | | | | | | | Ensure no other thread is accessing a framebuffer when it is being destroyed by acquiring both the global and per-framebuffer mutexes. Normal access only needs the global lock to walk the linked list and acquire the per-framebuffer mutex.
| * wgl: Check for multiple threads before GET_CURRENT_CONTEXT.José Fonseca2009-07-061-2/+8
| | | | | | | | | | Fixes wglthreads -- the 2nd thread MakeCurrent call was trying to flush the first thread context while still in use.
| * wgl: Listen to WM_WINDOWPOSCHANGED instead of WM_SIZE messages.José Fonseca2009-07-061-44/+45
| | | | | | | | | | | | | | | | | | | | According to http://blogs.msdn.com/oldnewthing/archive/2008/01/15/7113860.aspx WM_SIZE is generated from WM_WINDOWPOSCHANGED by DefWindowProc so it can be masked out by the application. Also there were some weird bogus WM_SIZE 0x0 messages when starting sharedtex_mt which we don't get like this.
| * i965: fix fetching constants from constant buffer in glsl pathRoland Scheidegger2009-07-044-17/+16
| | | | | | | | | | | | | | | | | | | | | | | | the driver used to overwrite grf0 then use implicit move by send instruction to move contents of grf0 to mrf1. However, we must not overwrite grf0 since it's still used later for fb write. Instead, do the move directly do mrf1 (we could use implicit move from another grf reg to mrf1 but since we need a mov to encode the data anyway it doesn't seem to make sense). I think the dp_READ/WRITE_16 functions may suffer from the same issue. While here also remove unnecessary msg_reg_nr parameter from the dataport functions since always message register 1 is used.
| * i965: Remove bad constant buffer constant-reg-already-loaded optimization.Eric Anholt2009-07-041-13/+11
| | | | | | | | | | | | | | Thanks to branching, the state of c->current_const[i].index at the point of emitting constant loads for this instruction may not match the actual constant currently loaded in the reg at runtime. Fixes a regression in my GLSL program for idr's class since b58b3a786aa38dcc9d72144c2cc691151e46e3d5.
* | Merge commit 'origin/openvg-1.0'Zack Rusin2009-07-0650-0/+18857
|\ \
| * | OpenVG 1.0 State TrackerZack Rusin2009-05-0150-0/+18857
| | | | | | | | | | | | Import of the OpenVG 1.0 state tracker for Gallium.
* | | gallium: rearrange some members to avoid memory holes/paddingZack Rusin2009-07-062-8/+8
| | | | | | | | | | | | plus it saves us a cacheline in the cso
* | | pipebuffer: handle possible null pointer dereferenceZack Rusin2009-07-062-0/+4
| | | | | | | | | | | | reported by clang static analyzer
* | | cso: possible null pointer dereferenceZack Rusin2009-07-061-0/+4
| | | | | | | | | | | | reported by clang static analyzer
* | | util: fix possible null pointer usageZack Rusin2009-07-064-11/+46
| | | | | | | | | | | | found by the clang static analyzer