Lines 2103-2113
Link Here
|
2103 |
/* See if the screen is set to not scanout */ |
2103 |
/* See if the screen is set to not scanout */ |
2104 |
ret = NvCtrlGetAttribute(screen->handle, NV_CTRL_NO_SCANOUT, &val); |
2104 |
ret = NvCtrlGetAttribute(screen->handle, NV_CTRL_NO_SCANOUT, &val); |
2105 |
if (ret != NvCtrlSuccess) { |
2105 |
if (ret != NvCtrlSuccess) { |
|
|
2106 |
#if 0 |
2106 |
*err_str = g_strdup_printf("Failed to query NoScanout for " |
2107 |
*err_str = g_strdup_printf("Failed to query NoScanout for " |
2107 |
"screen %d.", |
2108 |
"screen %d.", |
2108 |
screen_id); |
2109 |
screen_id); |
2109 |
nv_warning_msg(*err_str); |
2110 |
nv_warning_msg(*err_str); |
2110 |
goto fail; |
2111 |
goto fail; |
|
|
2112 |
#endif |
2113 |
val = NV_CTRL_NO_SCANOUT_DISABLED; |
2111 |
} |
2114 |
} |
2112 |
screen->no_scanout = (val == NV_CTRL_NO_SCANOUT_ENABLED); |
2115 |
screen->no_scanout = (val == NV_CTRL_NO_SCANOUT_ENABLED); |