Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
xserver
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Drew DeVault
xserver
Commits
ad67299f
Commit
ad67299f
authored
Feb 08, 2010
by
Eric Anholt
Committed by
Zhigang Gong
Sep 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
glamor: Provide more information about the operands to fallback composites.
parent
4811e428
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
1 deletion
+27
-1
glamor/glamor_render.c
glamor/glamor_render.c
+27
-1
No files found.
glamor/glamor_render.c
View file @
ad67299f
...
...
@@ -425,6 +425,27 @@ compatible_formats (CARD8 op, PicturePtr dst, PicturePtr src)
return
0
;
}
static
char
glamor_get_picture_location
(
PicturePtr
picture
)
{
if
(
picture
==
NULL
)
return
' '
;
if
(
picture
->
pDrawable
==
NULL
)
{
switch
(
picture
->
pSourcePict
->
type
)
{
case
SourcePictTypeSolidFill
:
return
'c'
;
case
SourcePictTypeLinear
:
return
'l'
;
case
SourcePictTypeRadial
:
return
'r'
;
default:
return
'?'
;
}
}
return
glamor_get_drawable_location
(
picture
->
pDrawable
);
}
void
glamor_composite
(
CARD8
op
,
PicturePtr
source
,
...
...
@@ -627,7 +648,12 @@ glamor_composite(CARD8 op,
fail:
glamor_fallback
(
"glamor_composite(): "
"from picts %p/%p to pict %p
\n
"
,
source
,
mask
,
dest
);
"from picts %p/%p(%c,%c) to pict %p (%c)
\n
"
,
source
,
mask
,
glamor_get_picture_location
(
source
),
glamor_get_picture_location
(
mask
),
dest
,
glamor_get_picture_location
(
dest
));
glUseProgramObjectARB
(
0
);
if
(
glamor_prepare_access
(
dest
->
pDrawable
,
GLAMOR_ACCESS_RW
))
{
...
...
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