diff options
author | Daniel Dadap <ddadap@nvidia.com> | 2016-11-19 20:35:23 -0600 |
---|---|---|
committer | Daniel Dadap <ddadap@nvidia.com> | 2016-11-19 20:35:23 -0600 |
commit | 45791fcdab0b7d937ff2d76b9c4d5b532724328d (patch) | |
tree | 06bc0a72a6c61269884f33d3e4bd7bf61507c482 | |
parent | 8c951b22de462b5eb6ac7e1f11726ff43f80d1fa (diff) |
375.20
-rw-r--r-- | nvidia-xconfig.c | 10 | ||||
-rw-r--r-- | nvidia-xconfig.h | 3 | ||||
-rw-r--r-- | option_table.h | 12 | ||||
-rw-r--r-- | options.c | 20 | ||||
-rw-r--r-- | version.mk | 2 |
5 files changed, 46 insertions, 1 deletions
diff --git a/nvidia-xconfig.c b/nvidia-xconfig.c index 98d1136..bc10a26 100644 --- a/nvidia-xconfig.c +++ b/nvidia-xconfig.c @@ -618,6 +618,16 @@ static void parse_commandline(Options *op, int argc, char *argv[]) op->num_x_screens = intval; break; + case FORCE_COMPOSITION_PIPELINE_OPTION: + op->force_composition_pipeline = + disable ? NV_DISABLE_STRING_OPTION : strval; + break; + + case FORCE_FULL_COMPOSITION_PIPELINE_OPTION: + op->force_full_composition_pipeline = + disable ? NV_DISABLE_STRING_OPTION : strval; + break; + default: goto fail; } diff --git a/nvidia-xconfig.h b/nvidia-xconfig.h index e0b6d9f..86d3ed2 100644 --- a/nvidia-xconfig.h +++ b/nvidia-xconfig.h @@ -153,6 +153,9 @@ typedef struct __options { char *flatpanel_properties; char *nvidia_3dvision_usb_path; char *nvidia_3dvisionpro_config_file; + char *force_composition_pipeline; + char *force_full_composition_pipeline; + double tv_over_scan; struct { diff --git a/option_table.h b/option_table.h index 624e9e5..754b871 100644 --- a/option_table.h +++ b/option_table.h @@ -59,6 +59,8 @@ enum { NVIDIA_3DVISION_DISPLAY_TYPE_OPTION, RESTORE_ORIGINAL_BACKUP_OPTION, NUM_X_SCREENS_OPTION, + FORCE_COMPOSITION_PIPELINE_OPTION, + FORCE_FULL_COMPOSITION_PIPELINE_OPTION, }; /* @@ -656,5 +658,15 @@ static const NVGetoptOption __options[] = { "if possible, even if the current display and GPU both support " "uncompressed RGB 4:4:4 output with these modes." }, + { "force-composition-pipeline", FORCE_COMPOSITION_PIPELINE_OPTION, + NVGETOPT_STRING_ARGUMENT | NVGETOPT_ALLOW_DISABLE, NULL, + "Enable or disable the \"ForceCompositionPipeline\" X " + "configuration option." }, + + { "force-full-composition-pipeline", FORCE_FULL_COMPOSITION_PIPELINE_OPTION, + NVGETOPT_STRING_ARGUMENT | NVGETOPT_ALLOW_DISABLE, NULL, + "Enable or disable the \"ForceFullCompositionPipeline\" X " + "configuration option." }, + { NULL, 0, 0, NULL, NULL }, }; @@ -735,4 +735,24 @@ void update_options(Options *op, XConfigScreenPtr screen) } } + /* add the ForceCompositionPipeline option */ + + if (op->force_composition_pipeline) { + remove_option(screen, "ForceCompositionPipeline"); + if (op->force_composition_pipeline != NV_DISABLE_STRING_OPTION) { + set_option_value(screen, "ForceCompositionPipeline", + op->force_composition_pipeline); + } + } + + /* add the ForceFullCompositionPipeline option */ + + if (op->force_full_composition_pipeline) { + remove_option(screen, "ForceFullCompositionPipeline"); + if (op->force_full_composition_pipeline != NV_DISABLE_STRING_OPTION) { + set_option_value(screen, "ForceFullCompositionPipeline", + op->force_full_composition_pipeline); + } + } + } /* update_options() */ @@ -1 +1 @@ -NVIDIA_VERSION = 375.10 +NVIDIA_VERSION = 375.20 |