[host] nvfbc: fix ARGB10 support
There is no performance penalty to using ARGB10 as it's still a 32-bit copy per pixel and the nvidia driver internally handles any conversions required to make this work for both SDR and HDR.
This commit is contained in:
1 parent
880d8042a4
commit
e4a8424fad
2 files changed
+4
-21
No files matched your search
@@ -227,9 +227,7 @@ bool NvFBCToSysSetup(
|
||||
case BUFFER_FMT_RGB_PLANAR: params.eMode = NVFBC_TOSYS_RGB_PLANAR; break;
|
||||
case BUFFER_FMT_XOR : params.eMode = NVFBC_TOSYS_XOR ; break;
|
||||
case BUFFER_FMT_YUV444p : params.eMode = NVFBC_TOSYS_YUV444p ; break;
|
||||
case BUFFER_FMT_ARGB10 :
|
||||
params.eMode = NVFBC_TOSYS_ARGB10;
|
||||
params.bHDRRequest = TRUE;
|
||||
case BUFFER_FMT_ARGB10 : params.eMode = NVFBC_TOSYS_ARGB10 ; break;
|
||||
break;
|
||||
|
||||
default:
|
||||
@@ -237,6 +235,7 @@ bool NvFBCToSysSetup(
|
||||
return false;
|
||||
}
|
||||
|
||||
params.bHDRRequest = TRUE;
|
||||
params.bWithHWCursor = hwCursor ? TRUE : FALSE;
|
||||
params.bEnableSeparateCursorCapture = seperateCursorCapture ? TRUE : FALSE;
|
||||
params.bDiffMap = useDiffMap ? TRUE : FALSE;
|
||||
|
||||
Reference in new issue
Block a user