Displaying 11 results from an estimated 11 matches for "screen_init_args_decl".
2015 Jun 30
3
[PATCH] Add Option "DRI3" to allow to disable DRI3 under EXA.
...TION_DRI3, "DRI3", OPTV_BOOLEAN, {0}, FALSE },
{ -1, NULL, OPTV_NONE, {0}, FALSE }
};
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 8e2ae03..32f04d8 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1470,7 +1470,13 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
xf86SetBlackWhitePixels(pScreen);
- nouveau_present_init(pScreen);
+ if (nouveau_present_init(pScreen) <= 0)
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Hardware support for Present disabled\n");
+ else
+ xf86DrvMsg(pScrn->scrnIndex, X_INFO,
+ "Hardware supp...
2015 Jul 04
2
[PATCH] Add Option "DRI3" to allow to disable DRI3 under EXA.
...{ -1, NULL, OPTV_NONE, {0}, FALSE }
>> };
>>
>> diff --git a/src/nv_driver.c b/src/nv_driver.c
>> index 8e2ae03..32f04d8 100644
>> --- a/src/nv_driver.c
>> +++ b/src/nv_driver.c
>> @@ -1470,7 +1470,13 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
>>
>> xf86SetBlackWhitePixels(pScreen);
>>
>> - nouveau_present_init(pScreen);
>> + if (nouveau_present_init(pScreen) <= 0)
>> + xf86DrvMsg(pScrn->scrnIndex, X_INFO,
>> + "Hardware suppo...
2015 Jul 04
2
[PATCH] Add Option "DRI3" to allow to disable DRI3 under EXA.
..., {0}, FALSE }
>>>> };
>>>>
>>>> diff --git a/src/nv_driver.c b/src/nv_driver.c
>>>> index 8e2ae03..32f04d8 100644
>>>> --- a/src/nv_driver.c
>>>> +++ b/src/nv_driver.c
>>>> @@ -1470,7 +1470,13 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
>>>>
>>>> xf86SetBlackWhitePixels(pScreen);
>>>>
>>>> - nouveau_present_init(pScreen);
>>>> + if (nouveau_present_init(pScreen) <= 0)
>>>> + xf86DrvMsg(pScrn->scrnIndex, X_INFO,
>>...
2018 Mar 01
1
[PATCH] Fix colormap handling at screen depth 30.
...ned-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
---
src/nv_driver.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 32062eb..4fcd4c1 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1568,8 +1568,8 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
* Must follow initialization of the default colormap
*/
if (xf86_config->num_crtc &&
- !xf86HandleColormaps(pScreen, 256, 8, NVLoadPalette,
- NULL, CMAP_PALETTED_TRUECOLOR))
+ !xf86HandleColormaps(pScreen, 1 << pScrn->rgbBits, pScrn->rgbBits,
+ NVLoa...
2015 Jul 29
3
[PATCH 1/2] present: Fixup return type of nouveau_present_init()
Make it a Bool consistently, as declared in header.
Reported-by: Ilia Mirkin <imirkin at alum.mit.edu>
Signed-off-by: Mario Kleiner <mario.kleiner.de at gmail.com>
---
src/nouveau_present.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/nouveau_present.c b/src/nouveau_present.c
index 4de1e6e..699a58d 100644
--- a/src/nouveau_present.c
+++
2013 Jul 22
0
[RFC PATCH] Support running nested in a Mir compositor
...");
@@ -1168,7 +1308,8 @@ NVUnmapMem(ScrnInfoPtr pScrn)
{
NVPtr pNv = NVPTR(pScrn);
- drmmode_remove_fb(pScrn);
+ if (!xorgMir)
+ drmmode_remove_fb(pScrn);
nouveau_bo_ref(NULL, &pNv->transfer);
nouveau_bo_ref(NULL, &pNv->scanout);
@@ -1368,6 +1509,11 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
else
fbPictureInit (pScreen, 0, 0);
+#ifdef XMIR
+ if (pNv->xmir)
+ xmir_screen_init(pScreen, pNv->xmir);
+#endif
+
xf86SetBlackWhitePixels(pScreen);
if (!pNv->NoAccel && !nouveau_exa_init(pScreen))
@@ -1441,19 +1587,19 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
* Ini...
2015 Jul 14
3
[PATCH] Add Option "DRI3" to allow to disable DRI3 under EXA.
...;>>>>
>>>>>> diff --git a/src/nv_driver.c b/src/nv_driver.c
>>>>>> index 8e2ae03..32f04d8 100644
>>>>>> --- a/src/nv_driver.c
>>>>>> +++ b/src/nv_driver.c
>>>>>> @@ -1470,7 +1470,13 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
>>>>>>
>>>>>> xf86SetBlackWhitePixels(pScreen);
>>>>>>
>>>>>> - nouveau_present_init(pScreen);
>>>>>> + if (nouveau_present_init(pScreen) <= 0)
>>>>>> +...
2018 Jun 12
0
[PATCH] Fix colormap handling at screen depth 30. (v2)
...: Mario Kleiner <mario.kleiner.de at gmail.com>
---
src/nv_driver.c | 11 +++++++----
1 file changed, 7 insertions(+), 4 deletions(-)
diff --git a/src/nv_driver.c b/src/nv_driver.c
index 32062eb..a5d50c1 100644
--- a/src/nv_driver.c
+++ b/src/nv_driver.c
@@ -1565,11 +1565,14 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
/*
* Initialize colormap layer.
- * Must follow initialization of the default colormap
+ * Must follow initialization of the default colormap.
+ * X-Server < 1.20 mishandles > 256 slots / > 8 bpc color maps, so skip
+ * color map setup on old servers at > 8 bpc. Gamma luts...
2020 Jul 18
1
[PATCH 1/2] drmmode: fix screen resize without acceleration
This got broken with commit 86024cee back in 2014!
drmmode_pixmap/nouveau_pixmap expect there to be EXA wrapping around the
pixmap now, which is not there without accel.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
src/drmmode_display.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/drmmode_display.c b/src/drmmode_display.c
index 89927a4..69421e1 100644
2018 Mar 02
2
Nouveau Digest, Vol 131, Issue 3
...gt; src/nv_driver.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>>
>> diff --git a/src/nv_driver.c b/src/nv_driver.c
>> index 32062eb..4fcd4c1 100644
>> --- a/src/nv_driver.c
>> +++ b/src/nv_driver.c
>> @@ -1568,8 +1568,8 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
>> * Must follow initialization of the default colormap
>> */
>> if (xf86_config->num_crtc &&
>> - !xf86HandleColormaps(pScreen, 256, 8, NVLoadPalette,
>> - NULL, CMAP_PALETTED_TRUECOLOR)...
2012 Jul 04
0
[PATCH] Add xwayland support (v2)
...d, pScrn->bitsPerPixel >> 3);
+ if (xwl_screen)
+ ret = TRUE;
+ else
+ ret = drmmode_pre_init(pScrn, pNv->dev->fd, pScrn->bitsPerPixel >> 3);
+
if (ret == FALSE)
NVPreInitFail("Kernel modesetting failed to initialize\n");
@@ -1241,7 +1349,8 @@ NVScreenInit(SCREEN_INIT_ARGS_DECL)
if (serverGeneration == 1)
xf86ShowUnusedOptions(pScrn->scrnIndex, pScrn->options);
- drmmode_screen_init(pScreen);
+ if (!pNv->xwl_screen)
+ drmmode_screen_init(pScreen);
return TRUE;
}
diff --git a/src/nv_include.h b/src/nv_include.h
index 8d628c0..d28ec89 100644
--- a/src/...