Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
796c8e42
Unverified
Commit
796c8e42
authored
Sep 29, 2019
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/drop_faulty_render_check' into 3.6.x
Attributes GH PR #842:
https://github.com/ArcticaProject/nx-libs/pull/842
parents
c577775f
5aee32e9
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
84 deletions
+0
-84
NXextension.c
nx-X11/programs/Xserver/hw/nxagent/NXextension.c
+0
-15
NXrender.c
nx-X11/programs/Xserver/hw/nxagent/NXrender.c
+0
-20
Pixmap.c
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
+0
-35
Trap.c
nx-X11/programs/Xserver/hw/nxagent/Trap.c
+0
-7
Trap.h
nx-X11/programs/Xserver/hw/nxagent/Trap.h
+0
-7
No files found.
nx-X11/programs/Xserver/hw/nxagent/NXextension.c
View file @
796c8e42
...
...
@@ -95,13 +95,6 @@ ProcQueryExtension(ClientPtr client)
{
i
=
FindExtension
((
char
*
)
&
stuff
[
1
],
stuff
->
nbytes
);
if
(
i
<
0
/*
* Hide RENDER if our implementation
* is faulty.
*/
||
(
nxagentRenderTrap
&&
strcmp
(
extensions
[
i
]
->
name
,
"RENDER"
)
==
0
)
#ifdef XCSECURITY
/* don't show insecure extensions to untrusted clients */
||
(
client
->
trustLevel
==
XSecurityClientUntrusted
&&
...
...
@@ -149,14 +142,6 @@ ProcListExtensions(ClientPtr client)
!
extensions
[
i
]
->
secure
)
continue
;
#endif
/*
* Hide RENDER if our implementation
* is faulty.
*/
if
(
nxagentRenderTrap
&&
strcmp
(
extensions
[
i
]
->
name
,
"RENDER"
)
==
0
)
continue
;
total_length
+=
strlen
(
extensions
[
i
]
->
name
)
+
1
;
reply
.
nExtensions
+=
1
+
extensions
[
i
]
->
num_aliases
;
for
(
j
=
extensions
[
i
]
->
num_aliases
;
--
j
>=
0
;)
...
...
nx-X11/programs/Xserver/hw/nxagent/NXrender.c
View file @
796c8e42
...
...
@@ -1665,16 +1665,6 @@ ProcRenderDispatch (ClientPtr client)
REQUEST
(
xReq
);
/*
* Let the client fail if we are
* hiding the RENDER extension.
*/
if
(
nxagentRenderTrap
)
{
return
BadRequest
;
}
if
(
stuff
->
data
<
RenderNumberRequests
)
{
#ifdef TEST
...
...
@@ -1707,16 +1697,6 @@ SProcRenderDispatch (ClientPtr client)
REQUEST
(
xReq
);
/*
* Let the client fail if we are
* hiding the RENDER extension.
*/
if
(
nxagentRenderTrap
)
{
return
BadRequest
;
}
if
(
stuff
->
data
<
RenderNumberRequests
)
{
/*
...
...
nx-X11/programs/Xserver/hw/nxagent/Pixmap.c
View file @
796c8e42
...
...
@@ -322,41 +322,6 @@ PixmapPtr nxagentCreatePixmap(ScreenPtr pScreen, int width, int height,
pVirtualPriv
->
pVirtualPixmap
=
NULL
;
pVirtualPriv
->
pPicture
=
NULL
;
/*
* Check that the virtual pixmap is created with
* the appropriate bits-per-plane, otherwise free
* everything and return.
*/
if
(
pVirtual
->
drawable
.
bitsPerPixel
==
0
)
{
#ifdef WARNING
fprintf
(
stderr
,
"nxagentCreatePixmap: WARNING! Virtual pixmap at [%p] has invalid "
"bits per pixel.
\n
"
,
(
void
*
)
pVirtual
);
fprintf
(
stderr
,
"nxagentCreatePixmap: WARNING! Real pixmap created with width [%d] "
"height [%d] depth [%d] bits per pixel [%d] and allocation hint [%d].
\n
"
,
pPixmap
->
drawable
.
width
,
pPixmap
->
drawable
.
height
=
height
,
pPixmap
->
drawable
.
depth
,
pPixmap
->
drawable
.
bitsPerPixel
,
usage_hint
);
#endif
if
(
!
nxagentRenderTrap
)
{
#ifdef WARNING
fprintf
(
stderr
,
"Warning: Disabling render extension due to missing pixmap format.
\n
"
);
#endif
nxagentRenderTrap
=
1
;
}
nxagentDestroyPixmap
(
pPixmap
);
return
NullPixmap
;
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentCreatePixmap: Created pixmap at [%p] virtual at [%p] with width [%d] "
"height [%d] depth [%d] and allocation hint [%d].
\n
"
,
...
...
nx-X11/programs/Xserver/hw/nxagent/Trap.c
View file @
796c8e42
...
...
@@ -42,13 +42,6 @@ int nxagentGCTrap = 0;
int
nxagentScreenTrap
=
0
;
/*
* Set if we detected that our RENDER
* implementation is faulty.
*/
int
nxagentRenderTrap
=
0
;
/*
* Set if we are executing a GC operation
* only on the X side. Used to avoid
* reentrancy in FB layer.
...
...
nx-X11/programs/Xserver/hw/nxagent/Trap.h
View file @
796c8e42
...
...
@@ -43,13 +43,6 @@ extern int nxagentGCTrap;
extern
int
nxagentScreenTrap
;
/*
* Set if we detected that our RENDER
* implementation is faulty.
*/
extern
int
nxagentRenderTrap
;
/*
* Set if we are executing a GC operation
* only on the X side. Used to avoid
* reentrancy in FB layer.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment