summaryrefslogtreecommitdiffstats
path: root/src/gallium
Commit message (Collapse)AuthorAgeFilesLines
* tgsi/ureg: bump the limit of immediatesMarek Olšák2011-06-011-1/+1
| | | | | | | | | | | Lowered indirect addressing can create lots of immediates. Fixes piglit/glsl-fs-uniform-array-7 on r300g. NOTE: This is a candidate for the 7.10 branch. Reviewed-by: Brian Paul <[email protected]> (cherry picked from commit ff038170ff9042c0ee535be7c2837d200e06b0c0)
* draw: Fix draw_variant_output::format's type.José Fonseca2011-05-182-3/+4
| | | | (cherry picked from commit b79b05e17e197a7cdc523deff8f7ea456a91e8d0)
* r600c/g: Add pci id for FirePro 2270Kostas Georgiou2011-05-061-0/+1
| | | | Signed-off-by: Alex Deucher <[email protected]>
* r600g: add new pci idsAlex Deucher2011-05-031-0/+4
| | | | Signed-off-by: Alex Deucher <[email protected]>
* docs: replace llvmpipe/README with docs/llvmpipe.htmlBrian Paul2011-04-201-138/+0
|
* llvmpipe: document issue with LLVM 2.8 and earlier with AVXBrian Paul2011-04-201-0/+4
|
* llvmpipe: Update readme.José Fonseca2011-04-201-21/+2
|
* Check for out of memory when creating fenceAlan Hourihane2011-04-201-0/+3
|
* gallivm: Disable MMX-disabling code on llvm-2.9.Vinson Lee2011-04-201-0/+2
| | | | | | | The disable-mmx option was removed in llvm-2.9svn by revisions 122188 and 122189. Fixes FDO bug 32564.
* scons: remove dangling reference to state_trackers/python/SConscriptBrian Paul2011-04-191-1/+0
|
* r600g: add some additional ontario pci idsAlex Deucher2011-04-041-0/+2
| | | | Signed-off-by: Alex Deucher <[email protected]>
* r300g: tell the GLSL compiler to lower the continue opcodeMarek Olšák2011-04-031-2/+2
| | | | | NOTE: This is a candidate for the stable branches. (cherry picked from commit f814dd7a8171d9a3c413c3813d2d91d655535041)
* r600g: move user fence into base radeon structureJerome Glisse2011-03-306-43/+42
| | | | | | | | This avoid any issue when context is free and we still try to access fence through radeon structure. Signed-off-by: Jerome Glisse <[email protected]> (cherry picked from commit 63b9790a55038c262b57c846a5f7067ea33fc60f)
* st/dri: Fix surfaceless gl using contexts with previous bound surfacesBenjamin Franzke2011-03-301-2/+6
| | | | | | | | | | | | | | | ctx->dPriv might be != NULL then draw which is NULL is accessed: struct dri_drawable *draw = dri_drawable(driDrawPriv); [..] if (ctx->dPriv != driDrawPriv) { ctx->dPriv = driDrawPriv; draw->texture_stamp = driDrawPriv->lastStamp - 1; } Cherry-picked from 0acb31be171f01aec8b38ceaddf47b7da6dae2a0 Signed-off-by: Jakob Bornecrantz <[email protected]>
* r300g: fix alpha-test with no colorbufferMarek Olšák2011-03-241-0/+5
| | | | | | | | Piglit: - fbo-alphatest-nocolor NOTE: This is a candidate for the stable branches. (cherry picked from commit 226ae9d6c8f282de788404b4d98af7ddf8ee30f4)
* r600: don't close fd on failed loadDave Airlie2011-03-141-3/+0
| | | | | | | This fd gets passed in from outside, closing it causes the X.org server to crap out when the driver doesn't identify the chipset. Signed-off-by: Dave Airlie <[email protected]>
* st/dri: Track drawable context bindingsMarek Olšák2011-02-204-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | Needs to track this ourself since because we get into a race condition with the dri_util.c code on make current when rendering to the front buffer. This is what happens: Old context is rendering to the front buffer. App calls MakeCurrent with a new context. dri_util.c sets drawable->driContextPriv to the new context and then calls the driver make current. st/dri make current flushes the old context, which calls back into st/dri via the flush frontbuffer hook. st/dri calls dri loader flush frontbuffer, which calls invalidate buffer on the drawable into st/dri. This is where things gets wrong. st/dri grabs the context from the dri drawable (which now points to the new context) and calls invalidate framebuffer to the new context which has not yet set the new drawable as its framebuffers since we have not called make current yet, it asserts. (cherry picked from commit 94ccc31ba4f64ac480137fd90f1ded44d2072f6e) Conflicts: src/gallium/state_trackers/dri/common/dri_context.c
* cso: fix loop bound in cso_set_vertex_samplers()Brian Paul2011-02-211-1/+1
| | | | | | | | Before we were looping to nr_samplers, which is the number of fragment samplers, not vertex samplers. NOTE: This is a candidate for the 7.9 and 7.10 branches. (cherry picked from commit d087cfaabf386c462329fb62f54311523a89f106)
* softpipe: fix off-by-one error in setup_fragcoord_coeff()Brian Paul2011-02-211-1/+1
| | | | | | | | | | If we invert Y, need to subtract one from the surface height. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=26795 for softpipe. NOTE: This is a candidate for the 7.9 and 7.10 branches. (cherry picked from commit 40ac24e631e694e00652a2df6c0ac5d0f07f620f)
* llvmpipe: make sure binning is active when we begin/end a queryBrian Paul2011-02-211-0/+4
| | | | | | | | This fixes a potential failure when a begin/end_query is the first thing to happen after flushing the scene. NOTE: This is a candidate for the 7.10 and 7.9 branches. (cherry picked from commit 42dbc2530b5a2263012f3fa0e48517a1b8db1c52)
* gallivm: fix copy&paste error from previous commitBrian Paul2011-02-211-1/+1
| | | | | | | Fixes piglit regression, http://bugs.freedesktop.org/show_bug.cgi?id=32452 NOTE: This is a candidate for the 7.10 branch (cherry picked from commit 3ecf47af1252ad10f98d5ce488cc1b91fab64c25)
* gallivm: work around LLVM 2.6 bug when calling C functionsBrian Paul2011-02-212-11/+61
| | | | | | | | | | Create a constant int pointer to the C function, then cast it to the function's type. This avoids using trampoline code which seem to be inadvertantly freed by LLVM in some situations (which leads to segfaults). The root issue and work-around were found by José. NOTE: This is a candidate for the 7.10 branch (cherry picked from commit ee16e97ed1d0921c533c77688b278bef393d9922)
* nv50,nvc0: do not forget to apply sign mode to saved TGSI inputsChristoph Bumiller2011-02-161-1/+1
| | | | | | | | fixes 34179. Reported-by: Sense Hofstede Requested-by: Christopher James Halse Rogers <[email protected]> Signed-off-by: Dave Airlie <[email protected]>
* r300g: Null pointer check for buffer deref in gallium winsysBryce Harrington2011-02-111-1/+1
| | | | | | | | | | | radeon_drm_bufmgr_create_buffer_from_handle() can return NULL buffers sometimes (seen when alt-tabbing in compiz). Avoid dereferencing the buffer pointer in this case. Ref.: https://bugs.launchpad.net/ubuntu/+source/mesa/+bug/691653 Also: https://bugzilla.redhat.com/show_bug.cgi?id=660143 Signed-off-by: Bryce Harrington <[email protected]>
* Remove talloc from the SCons build system.Kenneth Graunke2011-02-073-3/+0
| | | | | | | | | | (cherry picked from commit 8aac5d123c4636fad5e9d70c3a6706aaa6f1f240) Conflicts: src/SConscript src/gallium/targets/egl-static/SConscript src/glsl/SConscript src/mesa/SConscript
* draw: Fix an off-by-one bug in a vsplit assertion.Brian Paul2011-01-131-1/+2
| | | | | | | | | When use_spoken is true, istart (the first vertex of this segment) is replaced by i0 (the spoken vertex of the fan). There are still icount vertices. Thanks to Brian Paul for spotting this. (cherry picked from commit abbb1c8f084c6739bc9d6f559caf26f3f71b2fab)
* r600g: support up to 64 shader constantsAlex Deucher2011-01-062-1/+20
| | | | | | | | | | | | | | | | | | | From the r600 ISA: Each ALU clause can lock up to four sets of constants into the constant cache. Each set (one cache line) is 16 128-bit constants. These are split into two groups. Each group can be from a different constant buffer (out of 16 buffers). Each group of two constants consists of either [Line] and [Line+1] or [line + loop_ctr] and [line + loop_ctr +1]. For supporting more than 64 constants, we need to break the code into multiple ALU clauses based on what sets of constants are needed in that clause. Note: This is a candidate for the 7.10 branch. Signed-off-by: Alex Deucher <[email protected]>
* r600g: add support for NI (northern islands) asicsAlex Deucher2011-01-067-0/+118
| | | | This adds support for barts, turks, and caicos.
* r600g: hack around property unknown issues.Dave Airlie2011-01-061-0/+2
| | | | | | | | should fix https://bugs.freedesktop.org/show_bug.cgi?id=32619 Need to add proper support for properties later. Signed-off-by: Dave Airlie <[email protected]>
* r600g: remove useless switch statementsAlex Deucher2011-01-062-105/+0
| | | | Signed-off-by: Alex Deucher <[email protected]>
* r600g: fix evergreen segfaults.Dave Airlie2011-01-061-1/+1
| | | | | | | | evergreen was crashing running even gears here. This is a 7.10 candidate if its broken the same. Signed-off-by: Dave Airlie <[email protected]>
* r600g: avoid segfaultJerome Glisse2011-01-062-2/+2
| | | | | | Candidates 7.10 Signed-off-by: Jerome Glisse <[email protected]>
* r600g: properly unset vertex bufferJerome Glisse2011-01-063-12/+22
| | | | | | Fix bug http://bugs.freedesktop.org/show_bug.cgi?id=32455 Signed-off-by: Jerome Glisse <[email protected]>
* r600g: need to reference upload buffer as the might still live accross flushJerome Glisse2011-01-062-2/+4
| | | | | | | | | | Can't get away from referencing upload buffer as after flush a vertex buffer using the upload buffer might still be active. Likely need to simplify the pipe_refence a bit so we don't waste so much cpu time in it. candidates for 7.10 branch Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix segfault when translating vertex bufferJerome Glisse2011-01-064-21/+10
| | | | | | | | | Note the support for non float vertex draw likely regressed need to find what we want to do there. candidates for 7.10 branches Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix bo size when creating bo from handleJerome Glisse2011-01-061-1/+1
| | | | | | Spoted by Alex Diomin Signed-off-by: Jerome Glisse <[email protected]>
* r600g: fix pow(0, 0) evaluating to NaNFredrik Höglund2010-12-291-1/+1
| | | | | | | We have to use the non-IEEE compliant version of MUL here, since log2(0) is -inf, and 0 * -inf is NaN in IEEE arithmetic. candidates for 7.10 branch
* r600g: fix rendering with a vertex attrib having a zero strideAlex Deucher2010-12-291-4/+6
| | | | | | | | | The hardware supports zero stride just fine. This is a port of 2af8a1983180fc0168c1e0e53bcc69ee3d684ea4 from r300g. NOTE: This is a candidate for both the 7.9 and 7.10 branches. Signed-off-by: Alex Deucher <[email protected]>
* r300g: mark vertex arrays as dirty after a buffer_offset changeMarek Olšák2010-12-281-0/+1
| | | | | | | We shouldn't hit this bug in theory. NOTE: This is a candidate for the 7.10 branch. (cherry picked from commit d9b84017e0000b4740bf3318f54a3a5e31858f4f)
* r300g/swtcl: re-enable LLVMMarek Olšák2010-12-283-2/+23
| | | | | | | | | | | Based on a patch from Drill <[email protected]>. NOTE: This is a candidate for the 7.10 branch. (cherry picked from commit 88550083b3857184445075e70fed8b2eed4952a1) Conflicts: src/gallium/drivers/r300/r300_context.c
* st/egl: Fix eglChooseConfig when configs is NULL.Chia-I Wu2010-12-261-4/+4
| | | | | | When configs is NULL, the app wants to know the number of matching configs. (cherry picked from commit 9f2062fb12aa4e0d69583e88e70080efe70e1967)
* st/egl: Assorted fixes for dri2_display_get_configs.Chia-I Wu2010-12-221-4/+36
| | | | | | | Set window_bit only when the visual id is greater than zero. Correct visual types. Skip slow configs as they are not relevant. Finally, do not return duplicated configs. (cherry picked from commit 445cb9e53b1a98eb8af6ec499912a52b03fb1ce3)
* st/egl: Fix eglCopyBuffers.Chia-I Wu2010-12-221-6/+5
| | | | | Flush before presenting. (cherry picked from commit a31e2e3312cae5c4253a47dc30926ceb8c821ce3)
* st/egl: Plug pbuffer leaks.Chia-I Wu2010-12-221-8/+2
| | | | | Unreference validated resources or remove unnecessary validations. (cherry picked from commit 18bc427adecd7ecd728adc03ed73bb07878c0e8f)
* r300g: finally fix the texture corruption on r3xx-r4xxMarek Olšák2010-12-181-17/+15
| | | | | | | | | | | | | | Even though a bound texture stays bound when calling set_fragment_sampler_views, it must be assigned a new cache region depending on the occupancy of other texture units. This fixes: https://bugs.freedesktop.org/show_bug.cgi?id=28800 Thanks to Álmos <[email protected]> for finding the bug in the code. NOTE: This is a candidate for both the 7.9 and 7.10 branches. (cherry picked from commit daffaca53e47faeaaefb98ca46fe4870133d9f02)
* r300g: fix rendering with a vertex attrib having a zero strideMarek Olšák2010-12-161-7/+7
| | | | | | | | | | The hardware apparently does support a zero stride, so let's use it. This fixes missing objects in ETQW, but might also fix a ton of other similar-looking bugs. NOTE: This is a candidate for both the 7.9 and 7.10 branches. (cherry picked from commit 2af8a1983180fc0168c1e0e53bcc69ee3d684ea4)
* r300g: fixup rs690 tiling stride alignment calculations.Dave Airlie2010-12-163-31/+19
| | | | | | | | | | | | | | The RS690 memory controller prefers things to be on a different boundary than the discrete GPUs, we had an attempt to fix this, but it still failed, this consolidates the stride calculation into one place and removes the really special case check. This fixes gnome-shell and 16 piglit tests on my rs690 system. NOTE: This is a candidate for both the 7.9 and 7.10 branches. Signed-off-by: Dave Airlie <[email protected]> (cherry picked from commit d19b5cbd317620f3977e68fffb7a74793436b7e2)
* draw/llvm: don't flush in vs_llvm_delete()Brian Paul2010-12-141-12/+0
| | | | | | | | | | | | | | | | | | | | Fixes piglit glx-shader-sharing crash. When shaders are shared by multiple contexts, the shader's draw context pointer may point to a previously destroyed context. Dereferencing the context pointer will lead to a crash. In this case, simply removing the flushing code avoids the crash (the exec and sse shader paths don't flush here either). There's a deeper issue here, however, that needs examination. Shaders should not keep pointers to contexts since contexts might get destroyed at any time. NOTE: This is a candidate for the 7.10 branch (after this has been tested for a while). (cherry picked from commit becc4bb90c46f754018ac596460e6c6a650d399c)
* r600g: Fix SCons build.Vinson Lee2010-12-094-4/+5
|
* r600g: indentation cleanupJerome Glisse2010-12-092-23/+21
| | | | Signed-off-by: Jerome Glisse <[email protected]>