diff options
author | Eric Anholt <[email protected]> | 2019-05-01 15:02:27 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-05-13 12:03:11 -0700 |
commit | 60a64f028d75ad6ca13468490adf1748cf9f1ec0 (patch) | |
tree | 7cdc160a916fc95db2c1154490e9d741df80d210 /src/util | |
parent | 0c31fe9ee743f699bcabcb638ccc83e515f0d1bd (diff) |
v3d: Use driconf to expose non-MSAA texture limits for Xorg.
The V3D 4.2 HW has a limit to MSAA texture sizes of 4096. With non-MSAA,
we can go up to 7680 (actually probably 8138, but that hasn't been
validated by the HW team). Exposing 7680 in X11 will allow dual 4k displays.
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/00-mesa-defaults.conf | 5 | ||||
-rw-r--r-- | src/util/xmlpool/t_options.h | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/src/util/00-mesa-defaults.conf b/src/util/00-mesa-defaults.conf index 6389b796d33..d27e8541951 100644 --- a/src/util/00-mesa-defaults.conf +++ b/src/util/00-mesa-defaults.conf @@ -446,6 +446,9 @@ TODO: document the other workarounds. <application name="mpv" executable="mpv"> <option name="adaptive_sync" value="false" /> </application> + <application name="Xorg" executable="Xorg"> + <option name="v3d_nonmsaa_texture_size_limit" value="true" /> + </application> <!-- Gallium Nine workarounds: --> <application name="Rayman Legends" executable="Rayman Legends.exe"> @@ -481,4 +484,4 @@ TODO: document the other workarounds. <option name="radeonsi_enable_nir" value="true"/> </application> </device> -</driconf> + </driconf> diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h index c7ebd3a4600..4396ba79f79 100644 --- a/src/util/xmlpool/t_options.h +++ b/src/util/xmlpool/t_options.h @@ -358,3 +358,8 @@ DRI_CONF_OPT_BEGIN_B(radeonsi_zerovram, def) \ DRI_CONF_DESC(en,"Zero all vram allocations") \ DRI_CONF_OPT_END +#define DRI_CONF_V3D_NONMSAA_TEXTURE_SIZE_LIMIT(def) \ +DRI_CONF_OPT_BEGIN_B(v3d_nonmsaa_texture_size_limit, def) \ + DRI_CONF_DESC(en,"Report the non-MSAA-only texture size limit") \ +DRI_CONF_OPT_END + |