Lines 2112-2122
static int gpu_add_screen_from_server(nv
Link Here
|
2112 |
/* See if the screen is set to not scanout */ |
2112 |
/* See if the screen is set to not scanout */ |
2113 |
ret = NvCtrlGetAttribute(screen->handle, NV_CTRL_NO_SCANOUT, &val); |
2113 |
ret = NvCtrlGetAttribute(screen->handle, NV_CTRL_NO_SCANOUT, &val); |
2114 |
if (ret != NvCtrlSuccess) { |
2114 |
if (ret != NvCtrlSuccess) { |
|
|
2115 |
/* |
2115 |
*err_str = g_strdup_printf("Failed to query NoScanout for " |
2116 |
*err_str = g_strdup_printf("Failed to query NoScanout for " |
2116 |
"screen %d.", |
2117 |
"screen %d.", |
2117 |
screen_id); |
2118 |
screen_id); |
2118 |
nv_warning_msg(*err_str); |
2119 |
nv_warning_msg(*err_str); |
2119 |
goto fail; |
2120 |
goto fail; |
|
|
2121 |
*/ |
2122 |
val = NV_CTRL_NO_SCANOUT_DISABLED; |
2120 |
} |
2123 |
} |
2121 |
screen->no_scanout = (val == NV_CTRL_NO_SCANOUT_ENABLED) ? TRUE : FALSE; |
2124 |
screen->no_scanout = (val == NV_CTRL_NO_SCANOUT_ENABLED) ? TRUE : FALSE; |
2122 |
|
2125 |
|