[Mesa-dev] [PATCH 0/4] Mesa integration for DRM variable refresh rate API

2018-09-11 Thread Nicholas Kazlauskas
atches are based upon feedback from patches and feedback from two previous threads on the subject which are linked below for reference: https://lists.freedesktop.org/archives/amd-gfx/2018-April/021047.html https://lists.freedesktop.org/archives/dri-devel/2017-October/155207.html Nicholas Kazlauskas

[Mesa-dev] [PATCH 1/4] dri3: Add adaptive_sync_enable driconf option

2018-09-11 Thread Nicholas Kazlauskas
setup). v2: set adaptive_sync_enable = 0 by default Reviewed-By: Nicholas Kazlauskas --- .../drivers/radeonsi/driinfo_radeonsi.h | 4 ++ src/loader/loader_dri3_helper.c | 61 ++- src/loader/loader_dri3_helper.h | 1 + src/util/xmlpool/t_opti

[Mesa-dev] [PATCH 2/4] Enable adapative sync by default for radeon

2018-09-11 Thread Nicholas Kazlauskas
It's better to let most applications make use of adaptive sync by default. Problematic applications can be placed on the blacklist or the user can manually disable the feature. Signed-off-by: Nicholas Kazlauskas --- src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 2 +- 1 file chang

[Mesa-dev] [PATCH 3/4] drirc: Initial blacklist for adaptive sync

2018-09-11 Thread Nicholas Kazlauskas
Applications that don't present at a predictable rate (ie. not games) shouldn't have adapative sync enabled. This list covers some of the common desktop compositors and some web browsers. Signed-off-by: Nicholas Kazlauskas --- src/util/00-mesa-defaults

[Mesa-dev] [PATCH 4/4] util: Get program name based on path when possible

2018-09-11 Thread Nicholas Kazlauskas
Some programs start with the path and command line arguments in argv[0] (program_invocation_name). Chromium is an example of an application using mesa that does this. This tries to query the real path for the symbolic link /proc/self/exe to find the program name instead. Signed-off-by: Nicholas

[Mesa-dev] [PATCH v2 1/4] util: Get program name based on path when possible

2018-09-24 Thread Nicholas Kazlauskas
Some programs start with the path and command line arguments in argv[0] (program_invocation_name). Chromium is an example of an application using mesa that does this. This tries to query the real path for the symbolic link /proc/self/exe to find the program name instead. Signed-off-by: Nicholas

[Mesa-dev] [PATCH v2 0/4] Mesa integration for DRM variable refresh rate API

2018-09-24 Thread Nicholas Kazlauskas
reference: https://lists.freedesktop.org/archives/amd-gfx/2018-April/021047.html https://lists.freedesktop.org/archives/dri-devel/2017-October/155207.html https://lists.freedesktop.org/archives/mesa-dev/2018-September/205001.html Nicholas Kazlauskas Nicholas Kazlauskas (4): util: Get program nam

[Mesa-dev] [PATCH v2 2/4] drirc: Initial blacklist for adaptive sync

2018-09-24 Thread Nicholas Kazlauskas
Applications that don't present at a predictable rate (ie. not games) shouldn't have adaptive sync enabled. This list covers some of the common desktop compositors, web browsers and video players. Signed-off-by: Nicholas Kazlauskas --- src/util/00-mesa-defaults

[Mesa-dev] [PATCH v2 3/4] radeonsi: Enable adapative sync by default for radeon

2018-09-24 Thread Nicholas Kazlauskas
It's better to let most applications make use of adaptive sync by default. Problematic applications can be placed on the blacklist or the user can manually disable the feature. Signed-off-by: Nicholas Kazlauskas --- src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 4 1 file chang

[Mesa-dev] [PATCH v2 4/4] loader/dri3: Enable adaptive sync via _VARIABLE_REFRESH property

2018-09-24 Thread Nicholas Kazlauskas
quire splitting the function out into a common helper function. Signed-off-by: Nicholas Kazlauskas --- src/loader/loader_dri3_helper.c | 46 - src/loader/loader_dri3_helper.h | 2 ++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/src/loader/loader_

[Mesa-dev] [PATCH v3 0/5] Mesa integration for DRM variable refresh rate API

2018-10-05 Thread Nicholas Kazlauskas
tps://lists.freedesktop.org/archives/mesa-dev/2018-September/205001.html https://lists.freedesktop.org/archives/mesa-dev/2018-September/205883.html Nicholas Kazlauskas (5): util: Add adaptive_sync_enable driconf option util: Get program name based on path when possible drirc: Initial blacklist fo

[Mesa-dev] [PATCH v3 1/5] util: Add adaptive_sync_enable driconf option

2018-10-05 Thread Nicholas Kazlauskas
This option lets the user decide whether mesa should notify the window manager / DDX driver that the current application is adaptive sync capable. It's off by default. Signed-off-by: Nicholas Kazlauskas --- src/util/xmlpool/t_options.h | 5 + 1 file changed, 5 insertions(+) diff --

[Mesa-dev] [PATCH v3 2/5] util: Get program name based on path when possible

2018-10-05 Thread Nicholas Kazlauskas
if it was a prefix of the invocation to avoid breaking wine programs. Signed-off-by: Nicholas Kazlauskas --- src/util/u_process.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/util/u_process.c b/src/util/u_process.c index 5e5927678d..cd16521ab3 100644

[Mesa-dev] [PATCH v3 3/5] drirc: Initial blacklist for adaptive sync

2018-10-05 Thread Nicholas Kazlauskas
Applications that don't present at a predictable rate (ie. not games) shouldn't have adapative sync enabled. This list covers some of the common desktop compositors, web browsers and video players. Signed-off-by: Nicholas Kazlauskas --- src/util/00-mesa-defaults

[Mesa-dev] [PATCH v3 5/5] loader/dri3: Enable adaptive sync via _VARIABLE_REFRESH property

2018-10-05 Thread Nicholas Kazlauskas
quire splitting the function out into a common helper function. Signed-off-by: Nicholas Kazlauskas --- src/loader/loader_dri3_helper.c | 46 - src/loader/loader_dri3_helper.h | 2 ++ 2 files changed, 47 insertions(+), 1 deletion(-) diff --git a/src/loader/loader_

[Mesa-dev] [PATCH v3 4/5] radeonsi: Enable adapative sync by default for radeon

2018-10-05 Thread Nicholas Kazlauskas
It's better to let most applications make use of adaptive sync by default. Problematic applications can be placed on the blacklist or the user can manually disable the feature. Signed-off-by: Nicholas Kazlauskas --- src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 4 1 file chang

[Mesa-dev] [PATCH v4 1/5] util: Add adaptive_sync_enable driconf option

2018-10-11 Thread Nicholas Kazlauskas
This option lets the user decide whether mesa should notify the window manager / DDX driver that the current application is adaptive sync capable. It's off by default. Signed-off-by: Nicholas Kazlauskas --- src/util/xmlpool/t_options.h | 5 + 1 file changed, 5 insertions(+) diff --

[Mesa-dev] [PATCH v4 0/5] Mesa integration for DRM variable refresh rate API

2018-10-11 Thread Nicholas Kazlauskas
sktop.org/archives/mesa-dev/2018-September/205001.html https://lists.freedesktop.org/archives/mesa-dev/2018-September/205883.html https://lists.freedesktop.org/archives/mesa-dev/2018-October/206486.html Nicholas Kazlauskas (5): util: Add adaptive_sync_enable driconf option util: Get program name based on pat

[Mesa-dev] [PATCH v4 2/5] util: Get program name based on path when possible

2018-10-11 Thread Nicholas Kazlauskas
if it was a prefix of the invocation to avoid breaking wine programs. Signed-off-by: Nicholas Kazlauskas --- src/util/u_process.c | 18 +- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/util/u_process.c b/src/util/u_process.c index 5e5927678d..cd16521ab3 100644

[Mesa-dev] [PATCH v4 4/5] radeonsi: Enable adapative sync by default for radeon

2018-10-11 Thread Nicholas Kazlauskas
It's better to let most applications make use of adaptive sync by default. Problematic applications can be placed on the blacklist or the user can manually disable the feature. Signed-off-by: Nicholas Kazlauskas --- src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 4 1 file chang

[Mesa-dev] [PATCH v4 5/5] loader/dri3: Enable adaptive sync via _VARIABLE_REFRESH property

2018-10-11 Thread Nicholas Kazlauskas
e splitting the function out into a common helper function. Signed-off-by: Nicholas Kazlauskas --- src/loader/loader_dri3_helper.c | 58 - src/loader/loader_dri3_helper.h | 2 ++ 2 files changed, 59 insertions(+), 1 deletion(-) diff --git a/src/loader/loader_dri3

[Mesa-dev] [PATCH v4 3/5] drirc: Initial blacklist for adaptive sync

2018-10-11 Thread Nicholas Kazlauskas
Applications that don't present at a predictable rate (ie. not games) shouldn't have adapative sync enabled. This list covers some of the common desktop compositors, web browsers and video players. Signed-off-by: Nicholas Kazlauskas --- src/util/00-mesa-defaults

[Mesa-dev] [PATCH v5 2/5] util: Add adaptive_sync driconf option

2018-10-12 Thread Nicholas Kazlauskas
This option lets the user decide whether mesa should notify the window manager / DDX driver that the current application is adaptive sync capable. It's off by default. Signed-off-by: Nicholas Kazlauskas --- src/util/xmlpool/t_options.h | 5 + 1 file changed, 5 insertions(+) diff --

[Mesa-dev] [PATCH v5 1/5] util: Get program name based on path when possible

2018-10-12 Thread Nicholas Kazlauskas
if it was a prefix of the invocation to avoid breaking wine programs. Signed-off-by: Nicholas Kazlauskas --- src/util/u_process.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/util/u_process.c b/src/util/u_process.c index 5e5927678d..a1667e7807

[Mesa-dev] [PATCH v5 0/5] Mesa integration for DRM variable refresh rate API

2018-10-12 Thread Nicholas Kazlauskas
/2018-September/190910.html https://lists.freedesktop.org/archives/mesa-dev/2018-September/205001.html https://lists.freedesktop.org/archives/mesa-dev/2018-September/205883.html https://lists.freedesktop.org/archives/mesa-dev/2018-October/206486.html https://lists.freedesktop.org/archives/mesa-dev/2

[Mesa-dev] [PATCH v5 3/5] drirc: Initial blacklist for adaptive sync

2018-10-12 Thread Nicholas Kazlauskas
Applications that don't present at a predictable rate (ie. not games) shouldn't have adapative sync enabled. This list covers some of the common desktop compositors, web browsers and video players. Signed-off-by: Nicholas Kazlauskas --- src/util/00-mesa-defaults

[Mesa-dev] [PATCH v5 5/5] radeonsi: Enable adaptive_sync by default for radeon

2018-10-12 Thread Nicholas Kazlauskas
It's better to let most applications make use of adaptive sync by default. Problematic applications can be placed on the blacklist or the user can manually disable the feature. Signed-off-by: Nicholas Kazlauskas --- src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 4 1 file chang

[Mesa-dev] [PATCH v5 4/5] loader/dri3: Enable adaptive_sync via _VARIABLE_REFRESH property

2018-10-12 Thread Nicholas Kazlauskas
nction out into a common helper function. Signed-off-by: Nicholas Kazlauskas --- src/loader/loader_dri3_helper.c | 47 - src/loader/loader_dri3_helper.h | 2 ++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/src/loader/loader_dri3_helper

[Mesa-dev] [PATCH v6 0/5] Mesa integration for DRM variable refresh rate API

2018-10-19 Thread Nicholas Kazlauskas
mesa-dev/2018-October/206486.html https://lists.freedesktop.org/archives/mesa-dev/2018-October/206802.html https://lists.freedesktop.org/archives/mesa-dev/2018-October/206854.html Nicholas Kazlauskas (5): util: Get program name based on path when possible util: Add adaptive_sync driconf optio

[Mesa-dev] [PATCH v6 1/5] util: Get program name based on path when possible

2018-10-19 Thread Nicholas Kazlauskas
if it was a prefix of the invocation to avoid breaking wine programs. Signed-off-by: Nicholas Kazlauskas --- src/util/u_process.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/util/u_process.c b/src/util/u_process.c index 5e5927678d..a1667e7807

[Mesa-dev] [PATCH v6 2/5] util: Add adaptive_sync driconf option

2018-10-19 Thread Nicholas Kazlauskas
This option lets the user decide whether mesa should notify the window manager / DDX driver that the current application is adaptive sync capable. It's off by default. Signed-off-by: Nicholas Kazlauskas --- src/util/xmlpool/t_options.h | 5 + 1 file changed, 5 insertions(+) diff --

[Mesa-dev] [PATCH v6 3/5] drirc: Initial blacklist for adaptive sync

2018-10-19 Thread Nicholas Kazlauskas
Applications that don't present at a predictable rate (ie. not games) shouldn't have adapative sync enabled. This list covers some of the common desktop compositors, web browsers and video players. Signed-off-by: Nicholas Kazlauskas --- src/util/00-mesa-defaults

[Mesa-dev] [PATCH v6 4/5] loader/dri3: Enable adaptive_sync via _VARIABLE_REFRESH property

2018-10-19 Thread Nicholas Kazlauskas
nction out into a common helper function. Signed-off-by: Nicholas Kazlauskas --- src/loader/loader_dri3_helper.c | 47 - src/loader/loader_dri3_helper.h | 2 ++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/src/loader/loader_dri3_helper

[Mesa-dev] [PATCH v6 5/5] radeonsi: Enable adaptive_sync by default for radeon

2018-10-19 Thread Nicholas Kazlauskas
It's better to let most applications make use of adaptive sync by default. Problematic applications can be placed on the blacklist or the user can manually disable the feature. Signed-off-by: Nicholas Kazlauskas --- src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 4 1 file chang

[Mesa-dev] [PATCH v7 1/5] util: Get program name based on path when possible

2018-10-23 Thread Nicholas Kazlauskas
if it was a prefix of the invocation to avoid breaking wine programs. Cc: Timothy Arceri Signed-off-by: Nicholas Kazlauskas Reviewed-by: Eric Engestrom --- src/util/u_process.c | 23 ++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/src/util/u_process.c b

[Mesa-dev] [PATCH v7 0/5] Mesa integration for DRM variable refresh rate API

2018-10-23 Thread Nicholas Kazlauskas
sa-dev/2018-September/205883.html https://lists.freedesktop.org/archives/mesa-dev/2018-October/206486.html https://lists.freedesktop.org/archives/mesa-dev/2018-October/206802.html https://lists.freedesktop.org/archives/mesa-dev/2018-October/206854.html Nicholas Kazlauskas (5): util: Get program name

[Mesa-dev] [PATCH v7 2/5] util: Add adaptive_sync driconf option

2018-10-23 Thread Nicholas Kazlauskas
This option lets the user decide whether mesa should notify the window manager / DDX driver that the current application is adaptive sync capable. It's off by default. Signed-off-by: Nicholas Kazlauskas --- src/util/xmlpool/t_options.h | 5 + 1 file changed, 5 insertions(+) diff --

[Mesa-dev] [PATCH v7 3/5] drirc: Initial blacklist for adaptive sync

2018-10-23 Thread Nicholas Kazlauskas
Applications that don't present at a predictable rate (ie. not games) shouldn't have adapative sync enabled. This list covers some of the common desktop compositors, web browsers and video players. Signed-off-by: Nicholas Kazlauskas --- src/util/00-mesa-defaults

[Mesa-dev] [PATCH v7 4/5] loader/dri3: Enable adaptive_sync via _VARIABLE_REFRESH property

2018-10-23 Thread Nicholas Kazlauskas
nction out into a common helper function. Signed-off-by: Nicholas Kazlauskas --- src/loader/loader_dri3_helper.c | 48 - src/loader/loader_dri3_helper.h | 2 ++ 2 files changed, 49 insertions(+), 1 deletion(-) diff --git a/src/loader/loader_dri3_helper

[Mesa-dev] [PATCH v7 5/5] radeonsi: Enable adaptive_sync by default for radeon

2018-10-23 Thread Nicholas Kazlauskas
It's better to let most applications make use of adaptive sync by default. Problematic applications can be placed on the blacklist or the user can manually disable the feature. Signed-off-by: Nicholas Kazlauskas --- src/gallium/drivers/radeonsi/driinfo_radeonsi.h | 4 1 file chang