summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
AgeCommit message (Collapse)Author
2010-11-25nvfx: reset nvfx->hw_zetaXavier Chantry
If nvfx_framebuffer prepare and validate were called successively with fb->zsbuf not NULL and then NULL, nvfx->hw_zeta would contain garbage and this would cause failures in nvfx_framebuffer_relocate/OUT_RELOC(hw_zeta). This was triggered by piglit/texwrap 2D GL_DEPTH_COMPONENT24 and caused first a 'write to user buffer!!' error in libdrm and then worse things. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-11-25nvfx: fb->nr_cbufs <= 1 on nv30Xavier Chantry
7e1bf946316ff99feaa3f2e85f70b45bd9a77ade changed PIPE_CAP_MAX_RENDER_TARGETS to 1 on nv30. Signed-off-by: Xavier Chantry <chantry.xavier@gmail.com> Signed-off-by: Francisco Jerez <currojerez@riseup.net>
2010-11-23r600g: Removed duplicated call to tgsi_split_literal_constant().Tilman Sauerbeck
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-23r600g: Only compare active vertex elementsMathias Fröhlich
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
2010-11-22llvmpipe: Remove unnecessary headers.Vinson Lee
2010-11-22r600g: add support for ontario APUsAlex Deucher
Signed-off-by: Alex Deucher <alexdeucher@gmail.com>
2010-11-22r300g: Avoid returning values in a static array, fixing a potential raceMathias Fröhlich
(Marek: added the initializion of "vec" in the default statement) NOTE: This is a candidate for the 7.9 branch. Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-11-22r600g: fix additional EVENT_WRITE packetAlex Deucher
Add explicit EVENT_TYPE field
2010-11-22gallium: add PIPE_SHADER_CAP_SUBROUTINESMarek Olšák
This fixes piglit/glsl-vs-main-return and glsl-fs-main-return for the drivers which don't support RET (i915g, r300g, r600g, svga). ir_to_mesa does not currently generate subroutines, but it's a matter of time till it's added. It would then break all the drivers which don't implement them, so this CAP makes sense. Signed-off-by: Marek Olšák <maraeo@gmail.com>
2010-11-22Merge branch 'lp-offset-twoside'Keith Whitwell
2010-11-22r600g: pick correct color swap for A8 fbos.Dave Airlie
This fixes fdo bug 31810. Signed-off-by: Dave Airlie <airlied@redhat.com>
2010-11-21i915g: kill RGBA/X formatsDaniel Vetter
It's intel, so always little endian! Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-11-21i915g: add pineview pci idsDaniel Vetter
Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-11-21i915g: s/hw_tiled/tilingDaniel Vetter
More in line with other intel drivers. Change to use enum by Jakob Bornecrantz. Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-11-21i915g: rip out ->sw_tiledDaniel Vetter
It looks like this was meant to facilitate unfenced access to textures/ color/renderbuffers. It's totally incomplete and fundamentally broken on a few levels: - broken: The kernel needs to about every tiled bo to fix up bit17 swizzling on swap-in. - unflexible: fenced/unfenced relocs from execbuffer2 do the same, much simpler. - unneeded: with relaxed fencing tiled gem bos are as memory-efficient as this trick. Hence kill it. Reviewed-by: Jakob Bornecrantz <wallbraker@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Jakob Bornecrantz <wallbraker@gmail.com>
2010-11-21r300g: silence guard band cap errorsJoakim Sindholt
Somebody should find out what these are. It can be found on Windows getting a D3DCAPS9 from IDirect3D9::GetCaps() and reading the GuardBand* values.
2010-11-20nvfx: only expose one rt on nv30Xavier Chantry
We do not know how to use more, GL_ARB_draw_buffers is not exposed on blob.
2010-11-20r600g: Fix location for clip plane registersOwen W. Taylor
The stride between the different clip plane registers was incorrect. https://bugs.freedesktop.org/show_bug.cgi?id=31788 agd5f: fix evergreen as well.
2010-11-20r300g: fix rendering with no vertex elementsMarek Olšák
Fixes glsl-vs-point-size, although I meant to fix glsl-novertexdata. Since swrast fails glsl-novertexdata too, I guess it's a core issue.
2010-11-19r600g: use full range of VS resources for vertex samplersAlex Deucher
Now that we have fetch shaders, the full range of VS resources can be used for sampling.
2010-11-19r600g: use meaningful defines for chiprevAlex Deucher
Makes the code much clearer.
2010-11-19r600g: translate ARR instruction for evergreenAlex Deucher
evergreen variant of: 9f7ec103e26c67cb077fd7d94d2fb68562b86c40
2010-11-19r600g: add fetch shader capabilitiesJerome Glisse
Use fetch shader instead of having fetch instruction in the vertex shader. Allow to restrict shader update to a smaller part when vertex buffer input layout changes. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-11-19llvmpipe: twoside for specular color alsoKeith Whitwell
2010-11-19llvmpipe: fix up twoside after recent changesKeith Whitwell
Fix my slot/attr confusion.
2010-11-19llvmpipe: fix such that offset/twoside function only does in-place modificationHui Qi Tay
2010-11-18gallium/noop: report GL 2.1Dave Airlie
this should at least make app use the same paths as they would for a real driver.
2010-11-17r600g: fix buffer alignmentAlex Deucher
This should fix the remaining buffer alignment issues in r600g.
2010-11-17gallium: Remove redundant sw and debug target helpersJakob Bornecrantz
2010-11-17r600g: code cleanup (indent, trailing space, empty line ...)Jerome Glisse
Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-11-17r300g: print FS inputs uninitialized due to hardware limits to stderrMarek Olšák
2010-11-17r600g: Synchronize supported color formats between Evergreen and r600/r700.Henri Verbeet
2010-11-17r600g: Swizzle vertex data only once.Henri Verbeet
Vertex data swizzles are already done in the vertex shader. Doing them twice breaks BGRA vertex arrays for example.
2010-11-16r300g: remove the hack with OPCODE_RETMarek Olšák
RET was interpreted as END, which was wrong. Instead, if a shader contains RET in the main function, it will fail to compile with an error message from now on. The hack is from early days.
2010-11-15r600g: Add PIPE_FORMAT_L8A8_UNORM for Evergreen as well.Henri Verbeet
2010-11-15r600g: Evergreen has two extra frac_bits for the sampler LOD state.Henri Verbeet
The (piglit) mipmap_limits test shows the issue very clearly.
2010-11-15gallium/noop: no operation gallium driverJerome Glisse
This driver is a fake swdri driver that perform no operations beside allocation gallium structure and buffer for upper layer usage. It's purpose is to help profiling core mesa/gallium without having pipe driver overhead hidding hot spot of core code. scons file are likely inadequate i am unfamiliar with this build system. To use it simply rename is to swrast_dri.so and properly set LIBGL_DRIVERS_PATH env variable. Signed-off-by: Jerome Glisse <jglisse@redhat.com>
2010-11-15llvmpipe: clean up polygon offset function in lp setup codeHui Qi Tay
2010-11-14r300g: return shader caps from Draw for SWTCL vertex shadersMarek Olšák
2010-11-14r300g: clean up redundancy in draw functionsMarek Olšák
2010-11-13r300g: fix texture border color for all texture formatsMarek Olšák
This fixes 8 texwrap format tests. The code should handle arbitrary formats now and is cleaner. NOTE: This is a candidate for the 7.9 branch.
2010-11-12svga: fill out CAPs for indirect addressingMarek Olšák
As per the ps_3_0 and vs_3_0 documentation. The aL register in D3D9 is quite tricky to use, though.
2010-11-12r600g: fill out CAPs for indirect addressingMarek Olšák
2010-11-12r300g: fill out CAPs for indirect addressingMarek Olšák
To match shader model 2.0 (it's impossible to fully implement ARL with shader model 3.0 relative addressing).
2010-11-12nvfx: fill out CAPs for indirect addressingMarek Olšák
To match shader model 2.0.
2010-11-12nv50: fill out CAPs for indirect addressingMarek Olšák
2010-11-12i965g: fill out CAPs for indirect addressingMarek Olšák
2010-11-12i915g: fill out CAPs for indirect addressingMarek Olšák
2010-11-11r600g: enforce minimum stride on render target texture imagesKeith Whitwell
Fixes piglit/fbo_readpixels since staging upload changes.
2010-11-11r600g: do not try to use staging resource for depth texturesKeith Whitwell
Currently r600_resource_copy_region() will turn these copies into transfers + memcpys, so to avoid recursion we must not turn those transfers back into blits.