path: root/src/gallium
AgeCommit message (Collapse)AuthorFilesLines
2014-05-30st/wgl: add debug code to check that pixel format initialization workedBrian Paul1-3/+9
If the assertion fails, it means something is really broken. Before, if this happened we reverted to the GDI renderer without any warning. Reviewed-by: Matthew McClure <>
2014-05-30st/wgl: change PFD_SWAP_COPY to PFD_SWAP_EXCHANGE.Brian Paul1-1/+1
To reflect our actual SwapBuffers implementation. See stw_st_swap_framebuffer_locked(). This fixes various rendering issues with SolidEdge. Reviewed-by: Jose Fonseca <>
2014-05-29st/egl: do not link against libloaderEmil Velikov1-1/+0
Move the link to the final targets, like any other place in mesa/gallium. This allows better visibilty and will prevent us from including the library archive twice. Resolves multiple definition of `loader_get_pci_id_for_fd' multiple definition of `loader_get_pci_id_for_fd' Bugzilla: Bugzilla: Cc: Chia-I Wu <> Signed-off-by: Emil Velikov <> Reviewed-by: Chia-I Wu <> Tested-by: Michel Dänzer <>
2014-05-28i915g: Support B5G5R5A1 render targets and texturesStéphane Marchesin1-0/+2
2014-05-28i915g: Support R4G4B4A4 render targets and texturesStéphane Marchesin1-0/+2
2014-05-28i915g: Fix copy region codeStéphane Marchesin1-34/+14
This fixes a few issues with it, also cleans up the code.
2014-05-28egl-static: Fix undefined reference to `loader_*'José Fonseca1-0/+1
Trivial. Better than a broken build.
2014-05-27nvc0/ir: use SM35 ISA with GK20AAlexandre Courbot3-7/+12
GK20A is mostly compatible with GK104, but uses the SM35 ISA. Use the GK110 path when this chip is detected. Signed-off-by: Alexandre Courbot <> Reviewed-by: Ilia Mirkin <>
2014-05-27nvc0: add GK20A 3D classAlexandre Courbot2-1/+9
GK20A is mostly compatible with GK104, but features a new 3D class. Add it to the relevant header and use it when GK20A is detected. Signed-off-by: Alexandre Courbot <> Reviewed-by: Ilia Mirkin <>
2014-05-27st/omx/enc: implement restricted b frames patternLeo Liu2-2/+10
Signed-off-by: Leo Liu <> Reviewed-by: Christian König <>
2014-05-27radeon/vce: implement non-referenced framesLeo Liu2-3/+5
Signed-off-by: Leo Liu <> Reviewed-by: Christian König <>
2014-05-27vl: add interface for non-referenced framesLeo Liu1-0/+2
Signed-off-by: Leo Liu <> Reviewed-by: Christian König <>
2014-05-26i915g: Fix shader disasm codeStéphane Marchesin1-1/+0
This broke when I separated declarations/shader.
2014-05-26i915g: Fallback to sw for npot copiesStéphane Marchesin1-2/+3
i915g's npot support is incomplete, so let's not use it for copies. This fixes a bunch of piglit tests.
2014-05-26i915g: handle more formats in copyStéphane Marchesin3-11/+91
We can handle depth, luminance,... copies by simply replacing the format with a known format of the same bpp.
2014-05-26nvc0: implement clear_bufferTobias Klausmann1-0/+141
Provide an accelerated path for ARB_clear_buffer_object Signed-off-by: Tobias Klausmann <> Reviewed-by: Ilia Mirkin <>
2014-05-26nvc0: revert mistaken logic to collapse color outputs to the beginningIlia Mirkin1-9/+4
In commit af38ef907, I added a "fix" to color outputs not being assigned correctly when sample mask was being output. This was totally wrong -- the color indices (i.e. "si" values) were the ones that were wrong. Undo that hunk. Signed-off-by: Ilia Mirkin <> Acked-by: Emil Velikov <>
2014-05-26freedreno/a3xx: texture fixesRob Clark1-1/+3
Signed-off-by: Rob Clark <>
2014-05-26freedreno: update generated headersRob Clark4-5/+7
Signed-off-by: Rob Clark <>
2014-05-26freedreno: few caps fixesRob Clark2-4/+8
Signed-off-by: Rob Clark <>
2014-05-25automake: correctly append the version-scriptEmil Velikov6-25/+38
Turns out that the AC conditional did not include the the version-scripts as expected. Rather it truncated the remaining linker flags. Cc: Jon TURNEY <> Signed-off-by: Emil Velikov <> Reviewed-by: Jon TURNEY <>
2014-05-25targets/libgl-xlib: hide all the exported symbol mayhemEmil Velikov2-0/+12
Leave only the gl/glx and mangled gl symbols. XMesa* was never an official interface and the only user of it was mesa-demos, while they were still in the same repo as mesa. v2: Conditionally use the version-script. Signed-off-by: Emil Velikov <>
2014-05-25targets/osmesa: include mangled gl symbolsEmil Velikov1-0/+1
Missed out with commit d4c3968c25885f6eb53dee4cc0c60d8d3f8fec32 Signed-off-by: Emil Velikov <>
2014-05-25targets/xa: limit the amount of exported symbolsEmil Velikov2-0/+43
In the presence of LLVM the final library exports every symbol from the llvm namespace. Resolve this by using a version script (w/o the version/name tag). Considering that there are only ~35 symbols, explicitly list them to minimize the chances of rogue symbols sneaking in. v2: Conditionally include the version-script. Reviewed-by: Thomas Hellstrom <> (v1) Signed-off-by: Emil Velikov <>
2014-05-25gallium/egl: st_profiles are build time decision, treat them as suchEmil Velikov9-55/+28
The profiles are present depending on the defines at build time. Drop the extra functions and feed the defines directly into the state-tracker at build time. v2: Drop unused variable i. Acked-by: Chia-I Wu <> (v1) Signed-off-by: Emil Velikov <>
2014-05-23nv50: count wrapped textures towards the tex_obj countJoakim Sindholt1-0/+2
But don't count their size towards the allocated memory, since that belongs to whoever created it. Reviewed-by: Ilia Mirkin <>
2014-05-23nvc0: assert that we have vertex elements stateChristoph Bumiller1-0/+1
Reviewed-by: Ilia Mirkin <>
2014-05-23nvc0: use PRIxPTR for sizeof()Christoph Bumiller1-1/+1
Reviewed-by: Ilia Mirkin <>
2014-05-23nv50,nvc0: allow 15,16,30 bpp display formatsChristoph Bumiller1-4/+4
Reviewed-by: Ilia Mirkin <>
2014-05-23nv50,nvc0: handle guard band definesChristoph Bumiller2-4/+16
[imirkin: moved default case out of switch] Reviewed-by: Ilia Mirkin <>
2014-05-23nv50/ir/tgsi: optimize KILChristoph Bumiller1-0/+5
Reviewed-by: Ilia Mirkin <> Cc: "10.2" <>
2014-05-23nv50/ir: fix lowering of predicated instructions (without defs)Christoph Bumiller1-1/+4
Note that predicated instructions with defs are still not supported because transformation to SSA doesn't handle them yet. Reviewed-by: Ilia Mirkin <> Cc: "10.2" <>
2014-05-23nv50/ir/opt: fix constant folding with saturate modifierChristoph Bumiller1-1/+3
Reviewed-by: Ilia Mirkin <> Cc: "10.2" <>
2014-05-23nv50/ir/tgsi: TGSI_OPCODE_POW replicates its resultChristoph Bumiller1-1/+5
Reviewed-by: Ilia Mirkin <> Cc: "10.2" <>
2014-05-23nv50,nvc0: set constbufs dirty on pipe context switchChristoph Bumiller2-0/+5
Reviewed-by: Ilia Mirkin <> Cc: "10.2" <>
2014-05-23nv50: setup scissors on clear_render_target/depth_stencilChristoph Bumiller1-2/+18
[imirkin: add logic to also clear the "regular" scissors] Reviewed-by: Ilia Mirkin <> Cc: "10.2" <>
2014-05-23nv50,nvc0: always pull out bufctx on context destructionChristoph Bumiller2-9/+7
Reviewed-by: Ilia Mirkin <> Cc: "10.2" <>
2014-05-23Make DRI dependencies and build depend on the targetJon TURNEY8-16/+20
- Don't require xcb-dri[23] etc. if we aren't building for a target with DRM, as we won't be using dri[23] - Enable a more fine-grained control of what DRI code is built, so that a libGL using direct swrast can be built on targets which don't have DRM. The HAVE_DRI automake conditional is retired in favour of a number of other conditionals: HAVE_DRI2 enables building of code using the DRI2 interface (and possibly DRI3 with HAVE_DRI3) HAVE_DRISW enables building of DRI swrast HAVE_DRICOMMON enables building of target-independent DRI code, and also enables some makefile cases where a more detailled decision is made at a lower level. HAVE_APPLEDRI enables building of an Apple-specific direct rendering interface, still which requires additional fixing up to build properly. v2: Place xfont.c and drisw_glx.c into correct categories. Update 'make check' as well Signed-off-by: Jon TURNEY <> Reviewed-by: Jeremy Huddleston Sequoia <> Reviewed-by: Emil Velikov <>
2014-05-23Fix build for darwinJon TURNEY5-0/+16
Fix build for darwin, when ./configured --disable-driglx-direct - darwin ld doesn't support -Bsymbolic or --version-script, so check if ld supports those options before using them - define GLX_ALIAS_UNSUPPORTED as config/darwin used to, as aliasing of non-weak symbols isn't supported - default to -with-dri-drivers=swrast v2: Use -Wl,-Bsymbolic, as before, not -Bsymbolic Test that ld --version-script works, rather than just looking for it in ld --help Don't use -Wl,--no-undefined on darwin, either Signed-off-by: Jon TURNEY <> Reviewed-by: Jeremy Huddleston Sequoia <> Reviewed-by: Emil Velikov <>
2014-05-23targets/egl-static: add missing line break in ldflagsEmil Velikov1-1/+1
Accidently omitted by commit 7b7944ee1cedeaf. Cc: "10.2" <> Signed-off-by: Emil Velikov <> Reviewed-by: Jon TURNEY <>
2014-05-23targets/osmesa: limit the amount of exported symbolsEmil Velikov2-0/+19
src/gallium/targets/osmesa/ | 1 + src/gallium/targets/osmesa/osmesa.sym | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 src/gallium/targets/osmesa/osmesa.sym
2014-05-23gallivm: Disable workaround for PR12833 on LLVM 3.2+.José Fonseca1-2/+2
Fixed upstream.
2014-05-23gallivm: Support MCJIT on Windows.José Fonseca1-0/+9
It works fine, though it requires using ELF objects. With this change there is nothing preventing us to switch exclusively to MCJIT, everywhere. It's still off though.
2014-05-21haiku: Add missing u_memory.h for FREE()Alexander von Gluck IV2-0/+2
Acked-by: Brian Paul <>
2014-05-21freedreno/a3xx: fix blend opcodeRob Clark8-54/+83
Seems the opcodes are slightly different from a2xx. Resync headers and move blend_func() helper into hw generation specific code. Signed-off-by: Rob Clark <>
2014-05-21freedreno/a3xx: fix depth/stencil gmem restoreRob Clark1-1/+1
We already multiply by bytes per pixel for this, so f3ba7611 broke mem2gmem for depth/stencil. Drop the now-redundant mutiply by cpp. Signed-off-by: Rob Clark <>
2014-05-21freedreno/a3xx: fix depth/stencil GMEM positioningRob Clark1-12/+18
In cases where there was no color buf bound, there were inconsistancies in register settings related to position of depth/stencil inside GMEM. Signed-off-by: Rob Clark <>
2014-05-21freedreno: update generated headersRob Clark4-5/+5
Signed-off-by: Rob Clark <>
2014-05-21freedreno: use OUT_RELOCW when buffer is writtenRob Clark1-4/+4
These aren't buffers we ever read back from CPU, so using incorrect reloc fxn wasn't really harming anything. But might as well be correct. Signed-off-by: Rob Clark <>
2014-05-21rbug: add missing pipe->blit() entrypointRob Clark1-0/+21
Signed-off-by: Rob Clark <> Reviewed-by: Jakob Bornecrantz <>