Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
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
videolan
libva
Commits
ec8b1882
Commit
ec8b1882
authored
Jul 01, 2009
by
Austin Yuan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the patch from Zou Naihai to correct DRI2XXX --> VA_DRI2XXX
Signed-off-by:
Austin Yuan
<
shengquan.yuan@intel.com
>
parent
4d1cfde4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
dri/dri2_util.c
dri/dri2_util.c
+8
-8
src/Makefile.am
src/Makefile.am
+1
-1
No files found.
dri/dri2_util.c
View file @
ec8b1882
...
...
@@ -47,7 +47,7 @@ dri2CreateDrawable(VADriverContextP ctx, XID x_drawable)
dri2_drawable
->
base
.
x_drawable
=
x_drawable
;
dri2_drawable
->
base
.
x
=
0
;
dri2_drawable
->
base
.
y
=
0
;
DRI2CreateDrawable
(
ctx
->
x11_dpy
,
x_drawable
);
VA_
DRI2CreateDrawable
(
ctx
->
x11_dpy
,
x_drawable
);
return
&
dri2_drawable
->
base
;
}
...
...
@@ -55,7 +55,7 @@ dri2CreateDrawable(VADriverContextP ctx, XID x_drawable)
static
void
dri2DestroyDrawable
(
VADriverContextP
ctx
,
struct
dri_drawable
*
dri_drawable
)
{
DRI2DestroyDrawable
(
ctx
->
x11_dpy
,
dri_drawable
->
x_drawable
);
VA_
DRI2DestroyDrawable
(
ctx
->
x11_dpy
,
dri_drawable
->
x_drawable
);
free
(
dri_drawable
);
}
...
...
@@ -73,7 +73,7 @@ dri2SwapBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable)
xrect
.
height
=
dri2_drawable
->
height
;
region
=
XFixesCreateRegion
(
ctx
->
x11_dpy
,
&
xrect
,
1
);
DRI2CopyRegion
(
ctx
->
x11_dpy
,
dri_drawable
->
x_drawable
,
region
,
VA_
DRI2CopyRegion
(
ctx
->
x11_dpy
,
dri_drawable
->
x_drawable
,
region
,
DRI2BufferFrontLeft
,
DRI2BufferBackLeft
);
XFixesDestroyRegion
(
ctx
->
x11_dpy
,
region
);
}
...
...
@@ -91,7 +91,7 @@ dri2GetRenderingBuffer(VADriverContextP ctx, struct dri_drawable *dri_drawable)
i
=
0
;
attachments
[
i
++
]
=
__DRI_BUFFER_BACK_LEFT
;
attachments
[
i
++
]
=
__DRI_BUFFER_FRONT_LEFT
;
buffers
=
DRI2GetBuffers
(
ctx
->
x11_dpy
,
dri_drawable
->
x_drawable
,
buffers
=
VA_
DRI2GetBuffers
(
ctx
->
x11_dpy
,
dri_drawable
->
x_drawable
,
&
dri2_drawable
->
width
,
&
dri2_drawable
->
height
,
attachments
,
i
,
&
count
);
assert
(
buffers
);
...
...
@@ -148,14 +148,14 @@ isDRI2Connected(VADriverContextP ctx, char **driver_name)
*
driver_name
=
NULL
;
dri_state
->
fd
=
-
1
;
dri_state
->
driConnectedFlag
=
VA_NONE
;
if
(
!
DRI2QueryExtension
(
ctx
->
x11_dpy
,
&
event_base
,
&
error_base
))
if
(
!
VA_
DRI2QueryExtension
(
ctx
->
x11_dpy
,
&
event_base
,
&
error_base
))
goto
err_out
;
if
(
!
DRI2QueryVersion
(
ctx
->
x11_dpy
,
&
major
,
&
minor
))
if
(
!
VA_
DRI2QueryVersion
(
ctx
->
x11_dpy
,
&
major
,
&
minor
))
goto
err_out
;
if
(
!
DRI2Connect
(
ctx
->
x11_dpy
,
RootWindow
(
ctx
->
x11_dpy
,
ctx
->
x11_screen
),
if
(
!
VA_
DRI2Connect
(
ctx
->
x11_dpy
,
RootWindow
(
ctx
->
x11_dpy
,
ctx
->
x11_screen
),
driver_name
,
&
device_name
))
goto
err_out
;
...
...
@@ -168,7 +168,7 @@ isDRI2Connected(VADriverContextP ctx, char **driver_name)
if
(
drmGetMagic
(
dri_state
->
fd
,
&
magic
))
goto
err_out
;
if
(
!
DRI2Authenticate
(
ctx
->
x11_dpy
,
RootWindow
(
ctx
->
x11_dpy
,
ctx
->
x11_screen
),
if
(
!
VA_
DRI2Authenticate
(
ctx
->
x11_dpy
,
RootWindow
(
ctx
->
x11_dpy
,
ctx
->
x11_screen
),
magic
))
goto
err_out
;
...
...
src/Makefile.am
View file @
ec8b1882
...
...
@@ -27,7 +27,7 @@ INCLUDES = \
libva_la_LTLIBRARIES
=
libva.la
libva_ladir
=
$(libdir)
libva_la_LDFLAGS
=
-version-number
0:30:4
-no-undefined
libva_la_LIBADD
=
$(LIBVA_LIBS)
-ldl
-lX11
-lXext
../dri/libva_dri.la
libva_la_LIBADD
=
$(LIBVA_LIBS)
-ldl
-lX11
-lXext
../dri/libva_dri.la
-ldrm
-lXfixes
CFLAGS
=
-ansi
-O2
nodist_libva_la_SOURCES
=
va_version.h
...
...
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