aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
Commit message (Collapse)AuthorAgeFilesLines
* radeon: Invert front face winding when rendering to FBO.Michel Dänzer2009-07-143-0/+12
| | | | | | Fixes fgl_glxgears and progs/demos/fbotexture after pressing 'c'. Tested with r300, radeon and r200 compile tested only.
* Merge branch 'shaders_cleanup'Maciej Cencora2009-07-1317-570/+883
|\
| * r300: always assume all components are read by fragment programMaciej Cencora2009-07-131-49/+5
| | | | | | | | | | | | Components of input attributes that are used by fragment program aren't part of vertex program key, and that may lead to situations when vertex program writes only TEX1.xy and fragment program reads TEX1.xyz, resulting in rendering errors. Reported-by: Nicolai Hähnle <[email protected]>
| * r300: Fix fogcoord rewritingNicolai Hähnle2009-07-133-45/+66
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We only care about the actual fogcoord itself now, reducing the rewriting done for the vertex program. The rewriting of source operand swizzles in the fragment program takes care that fogcoord.yzw = 001. This should fix fogcoord rewriting entirely, which had been horribly broken in the face of dot-product instructions, and just broken (though not horribly so) in the face of almost every other instruction (the W component would be incorrect for most arithmetic instructions). Signed-off-by: Nicolai Hähnle <[email protected]>
| * r300: fix swizzle masking in getUsedComponentsMaciej Cencora2009-07-131-4/+8
| |
| * r300: minor fixMaciej Cencora2009-07-131-1/+2
| | | | | | | | | | | | Split initializations becase the vars are of different type. Reported-by: Nicolai Hähnle <[email protected]>
| * r300: move variables declarationsMaciej Cencora2009-07-131-3/+4
| |
| * r300: document r300_vertex_program_cont structureMaciej Cencora2009-07-131-2/+7
| | | | | | | | Reported-by: Nicolai Hähnle <[email protected]>
| * r300: document r300_fragment_program_cont structMaciej Cencora2009-07-131-0/+5
| |
| * r300: fix indentationMaciej Cencora2009-07-131-4/+4
| | | | | | | | Reported-by: Nicolai Hähnle <[email protected]>
| * r300: fix StrideB == 0 case when converting data formatMaciej Cencora2009-07-131-1/+10
| | | | | | | | Reported-by: Nicolai Hähnle <[email protected]>
| * r300: hw can handle per component negations in vertex shadersMaciej Cencora2009-07-131-25/+2
| | | | | | | | Reported-by: Nicolai Haehnle <[email protected]>
| * r300: fix WPOS for SWTCLMaciej Cencora2009-07-131-14/+16
| |
| * r300: removed unnecessary paramsMaciej Cencora2009-07-133-9/+9
| | | | | | | | We don't have check which attributes are used by fragment program - it's already done by NQSSADCE.
| * r300: use NQSSADCE for vertex programsMaciej Cencora2009-07-131-1/+132
| |
| * r300: operate on copy of a program when pairing instructionsMaciej Cencora2009-07-131-1/+3
| | | | | | | | We need to keep unpaired program for vertex program NQSSADCE.
| * r300: handle relative addressing in NQSSADCEMaciej Cencora2009-07-132-1/+10
| |
| * r300: handle ARB_vertex_program specific instructions in NQSSADCEMaciej Cencora2009-07-131-0/+14
| |
| * r300: move depth output rewrite out of NQSSADCEMaciej Cencora2009-07-133-49/+46
| |
| * r300: rewrite FOGC and HPOS attribs handlingMaciej Cencora2009-07-137-122/+130
| | | | | | | | Rewrite vertex and fragment programs so that we don't have to do any hacks on lower level.
| * r300: bind vertex program to fragment programMaciej Cencora2009-07-134-114/+103
| |
| * r300: recalculate used inputs and outputs after dead code removalMaciej Cencora2009-07-131-0/+28
| |
| * r300: move fragment program selection before vertex program selectionMaciej Cencora2009-07-131-19/+25
| | | | | | | | Prepare for wpos and fogc handling rewrite.
| * r300: implement proper IsProgramNative check for vertex programsMaciej Cencora2009-07-135-12/+23
| |
| * r300: don't modify original vertex programMaciej Cencora2009-07-133-28/+28
| | | | | | | | Keep the original vertex program untouched because it may be needed after some state change for generating new r300 specific vertex program.
| * r300: cache translated fragment programsMaciej Cencora2009-07-136-124/+173
| |
| * r300: update state parameters only once per rendering operationMaciej Cencora2009-07-133-15/+3
| |
| * r300: translate non native insts earlier for easier debuggingMaciej Cencora2009-07-131-0/+202
| |
| * r300: print vertex program after adding artificial output instsMaciej Cencora2009-07-131-12/+12
| |
| * r300: use mesa provided function for adding MVP codeMaciej Cencora2009-07-132-95/+7
| |
| * r300: simplify insert_wpos a littleMaciej Cencora2009-07-131-45/+31
| |
* | intel: Partially fix fallback detection for glCopyTexSubImage.Eric Anholt2009-07-131-6/+10
|/ | | | | | | | | Really, we should be checking that the MesaTexFormat for the read buffer and the texture match, but the previous code wasn't even doing that, so matching the cpp should be an improvement (and potentially fix some hangs!). The previous code also rejected GL_RGB even though blitting the alpha channel to the ignored channel of an x8r8g8b8 texture should be fine, which tripped up compiz's blur plugin.
* Merge branch 'mesa_7_5_branch'Brian Paul2009-07-137-4/+19
|\
| * r128: fix two-sided lighting segfault seen in GLUT's olight demoPeteri Andras2009-07-133-2/+7
| |
| * intel: Bump driver data, add RC3 tagintel_2009q2_rc3Ian Romanick2009-07-121-1/+1
| |
| * gallium: compare the actual register, not all the inputsZack Rusin2009-07-111-1/+1
| | | | | | | | otherwise we decrement indexes for all registers
| * st/mesa: implement indirect addressing for destination registersBrian Paul2009-07-101-0/+5
| |
| * vbo: fix vbo/dlist memory leakBrian Paul2009-07-101-0/+5
| | | | | | | | Based on a patch by [email protected]
| * mesa: From float type modifier from values to large for singlesIan Romanick2009-07-091-7/+7
| | | | | | | | | | | | | | | | | | The values 2147483648.0 and 4294967294.0 are too larget to be stored in single precision floats. Forcing these to be singles causes bits to be lost, which results in errors in some pixel transfer tests. This fixes bug #22344. (cherry picked from commit 70e72070fce6aa1e0918dcc62c1949465cee69f7)
* | 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.