summaryrefslogtreecommitdiff
path: root/src/gallium/state_trackers
AgeCommit message (Collapse)Author
2018-02-07Revert "gallium: build ddebug, noop, rbug, trace as part of auxiliary"Roland Scheidegger
This reverts commit 6f82b8d8d0a986aac28e7bec47fc313fb950475c. This broke scons build, and reportedly clover with autotools/meson too.
2018-02-07gallium: build ddebug, noop, rbug, trace as part of auxiliaryMarek Olšák
Building gallium is faster by 7.5 seconds on a 4core/8thread 3GHz CPU. (gallium build time is reduced by 15% when building only radeonsi) Non-recursive makefiles are great!
2018-02-05st/va: implement HEVC encode functionsBoyuan Zhang
Implement HEVC encode functions based on VAAPI HEVC encode interface. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2018-02-05st/va: add HEVC encode functionsBoyuan Zhang
Add a separate file for HEVC encode functions. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2018-02-05st/va: enable dual instances encode only for H264Boyuan Zhang
Logics that related to dual instances encode should only be done for H264, not other codecs. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2018-02-05st/va: add entrypoint check for HEVCBoyuan Zhang
Add entrypoint check for HEVC to differentiate decode and encode jobs. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2018-02-05st/va: add HEVC picture descBoyuan Zhang
Add HEVC picture desc, and add codec check when creating and destroying context. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2018-02-05st/va: move H264 enc functions into separate fileBoyuan Zhang
Move all H264 encode related functions into separate file. Similar to VAAPI decode side, there will be separate file for each codec on encode side as well. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2018-02-01gallium/st/clover: remove unused PIPE_SHADER_IR_LLVMTimothy Arceri
This has been unused since 100796c15c3a. Acked-by: Marek Olšák <marek.olsak@amd.com>
2018-01-30gallium: add type parameter to create_fence_fdAndres Rodriguez
An fd can potentially have different types of objects backing it. Specifying the type helps us make sure we treat the FD correctly. This is in preparation to allow importing syncobj fence FDs in addition to native sync FDs. Signed-off-by: Andres Rodriguez <andresx7@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2018-01-19autotools: include meson build files in tarballDylan Baker
This adds the meson.build, meson_options.txt, and a few scripts that are used exclusively by the meson build. v2: - Remove accidentally included changes needed to test make dist with LLVM > 3.9 Signed-off-by: Dylan Baker <dylan.c.baker@intel.com> Acked-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2018-01-19gallium: Make (num_)samples an unsigned intGert Wollny
According to the ARB_multisample num_samples is a non-negative integer. Consequently define it as such, fail in glx/choose_visual if a negative number is given. v2: split patch into gallium and mesa part Signed-off-by: Gert Wollny <gw.fossdev@gmail.com> Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
2018-01-19st/vdpau: release held lock in error pathGrazvydas Ignotas
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com> Cc: mesa-stable@lists.freedesktop.org
2018-01-17nine: assume that user constant buffers are always supportedMarek Olšák
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
2018-01-17gallium: remove PIPE_CAP_TWO_SIDED_STENCILMarek Olšák
Reviewed-by: Roland Scheidegger <sroland@vmware.com> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
2018-01-17st/va: add break for MPEG4 data buffer handling caseLeo Liu
Signed-off-by: Leo Liu <leo.liu@amd.com>
2018-01-17st/va: remove TODO line for JPEG data buffer handlingLeo Liu
Nothing to do Signed-off-by: Leo Liu <leo.liu@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2018-01-17st/va: release held locks in error pathsGrazvydas Ignotas
Found with the help of following Coccinelle semantic patch: // <smpl> @@ expression E; @@ \(pthread_mutex_lock\|mtx_lock\|simple_mtx_lock\)(E) ... ( \(pthread_mutex_unlock\|mtx_unlock\|simple_mtx_unlock\)(E); ... return ...; | + maybe need_unlock(E); return ...; ) // </smpl> Signed-off-by: Grazvydas Ignotas <notasas@gmail.com> Reviewed-by: Christian König <christian.koenig@amd.com> Cc: mesa-stable@lists.freedesktop.org
2018-01-16st/va: clear pointers for mpeg2 quantiser matricesIndrajit Das
This is to fix VA-API issues with GStreamer and MPEG2. Since gstreamer does not pass quantiser matrices with each frame, invalid pointers were being passed to the driver. This patch addresses the same. Signed-off-by: Indrajit Das <indrajit-kumar.das@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2018-01-15Revert "gallium/dri2: Enable {GLX_ARB,EGL_KHR}_context_flush_control"Adam Jackson
This reverts commit 0d044351b7043cd0bc94c1cb9b7a2213f8054414. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104490 Signed-off-by: Adam Jackson <ajax@redhat.com>
2018-01-11meson: Use consistent style for testsDylan Baker
Don't use intermediate variables, use consistent whitespace. Acked-by: Eric Engestrom <eric.engestrom@imgtec.com> Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
2018-01-09st/omx_bellagio: Update default intra matrix per MPEG2 specIndrajit Das
Signed-off-by: Indrajit Das <indrajit-kumar.das@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2018-01-08.gitignore: Ignore new generated filesScott D Phillips
New generated files from: bb1e6ff161c ("spirv: Add a prepass to set types on vtn_values") 65fc16c9741 ("autotools: set XA versions in configure.ac and configure header file") Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
2018-01-08meson: build cloverDylan Baker
This has only been compile tested. v2: - Have a single option for opencl (Eric E) - fix typo "tgis" -> "tgsi" (Curro) - Don't add "lib" to pipe loader libraries, which matches the autotools behavior v3: - Remove trailing whitespace - Make PIPE_SEARCH_DIR an absolute path v4: - add trailing / to LIBCLC defines Acked-by: Curro Jerez <currojerez@riseup.net> Tested-by: Jan Vesely <jan.vesely@rutgers.edu> cc: Aaron Watry <awatry@gmail.com> Signed-off-by: Dylan Baker <dylan.c.baker@intel.com>
2018-01-03st/dri: Add option to control exposure of 10 bpc color configs.Mario Kleiner
Some clients may not like rgb10 fbconfigs and visuals. Support driconf option 'allow_rgb10_configs' on gallium to allow per application enable/disable. The option defaults to enabled. Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2018-01-03st/dri: Add support for BGR[A/X]1010102 formats.Mario Kleiner
Exposes RGBA 10 10 10 2 and 10 10 10 0 visuals and fbconfigs for rendering. Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2018-01-03st/dri: Support texture_from_pixmap for BGR[A/X]1010102 formats.Mario Kleiner
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2018-01-03st/dri2: Add buffer handling for BGR[A/X]1010102 formats.Mario Kleiner
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2018-01-03st/dri2: Add format translations for BGR[A/X]1010102 formats.Mario Kleiner
Signed-off-by: Mario Kleiner <mario.kleiner.de@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Signed-off-by: Marek Olšák <marek.olsak@amd.com>
2017-12-20st/dri: allow direct YUYV importLucas Stach
Push this format to the pipe driver unchanged. Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
2017-12-19gallium: plumb context priority through to driverRob Clark
Signed-off-by: Rob Clark <robdclark@gmail.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Andres Rodriguez <andresx7@gmail.com> Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
2017-12-15st/va: directly use idr pic flagBoyuan Zhang
Remove is_idr flag, and use idr_pic_flag provided by vaapi directly Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com>
2017-12-07meson: add dep_thread to every lib that includes threads.hEric Engestrom
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104141 Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Dylan Baker <dylan@pnwbakers.com>
2017-12-04meson: build gallium nine state_trackerDylan Baker
v2: - set d3d_drivers_path instead of dri_drivers_path - Fix nine guard to check for all relavent gallium drivers - Link with libswdri and libswkmsdri when necessary - Fix pkg-config generation - Add missing comma Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-12-04meson: build gallium xa state trackerDylan Baker
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-12-04meson: build gallium va state trackerDylan Baker
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-12-04meson: build gallium omx state trackerDylan Baker
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-12-04meson: build gallium xvmc state trackerDylan Baker
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-12-04meson: build gallium vdpau state trackerDylan Baker
Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
2017-11-30mesa: add AllowGLSLCrossStageInterpolationMismatch workaroundTapani Pälli
This fixes issues seen with certain versions of Unreal Engine 4 editor and games built with that using GLSL 4.30. v2: add driinfo_gallium change (Emil Velikov) Signed-off-by: Tapani Pälli <tapani.palli@intel.com> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97852 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103801 Acked-by: Andres Gomez <agomez@igalia.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2017-11-29gallium/dri2: Enable {GLX_ARB,EGL_KHR}_context_flush_controlAdam Jackson
Reviewed-and-tested-by: Nicolai Hähnle <nicolai.haehnle@amd.com> Signed-off-by: Adam Jackson <ajax@redhat.com>
2017-11-28st/dri: replace hard-coded array size with ARRAY_SIZE()Eric Engestrom
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
2017-11-25gallium/hud: add HUD sharing within a context share groupMarek Olšák
This is needed for profiling multi-context applications like Chrome. One context can record queries and another context can draw the HUD. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-11-25gallium/hud: update the HUD interface for multiple contextsMarek Olšák
This is the boring subset of the following commit. All new parameters are optional. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-11-25gallium/hud: use cso_get_pipe_contextMarek Olšák
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-11-25gallium/hud: split hud_draw into 3 separate functionsMarek Olšák
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-11-25st/dri: remove dead code and incorrect comment around make_currentMarek Olšák
Core Mesa already handles flushing based on ContextReleaseBehavior, so the comment is wrong. Also, old_st is always NULL, because unbind_context always precedes make_current. Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-11-25st/dri: clean up dri_unbind_contextMarek Olšák
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
2017-11-17st/va: implement poc typeBoyuan Zhang
pic_order_cnt_type is a required variable when encoding both sps and slice header, therefore we need to get this value from st, e.g. vaapi interface, and then pass it to radeon driver for encoding headers. Signed-off-by: Boyuan Zhang <boyuan.zhang@amd.com> Acked-by: Christian König <christian.koenig@amd.com>
2017-11-16autotools: change version TINY -> PATCHDylan Baker
Because patch is more common than tiny for talking about the 3rd element of a version. Signed-off-by: Dylan Baker <dylanx.c.baker@intel.com> Reviewed-by: Emil Velikov <emli.velikov@collabora.com>