Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 173349 Details for
Bug 228473
x11-drivers/xf86-video-openchrome XvMC allocation fixes
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
debug patch
debug.patch (text/plain), 1.33 KB, created by
Daniel Drake (RETIRED)
on 2008-11-25 14:16:52 UTC
(
hide
)
Description:
debug patch
Filename:
MIME Type:
Creator:
Daniel Drake (RETIRED)
Created:
2008-11-25 14:16:52 UTC
Size:
1.33 KB
patch
obsolete
>Index: xf86-video-openchrome-0.2.903/libxvmc/viaLowLevel.c >=================================================================== >--- xf86-video-openchrome-0.2.903.orig/libxvmc/viaLowLevel.c >+++ xf86-video-openchrome-0.2.903/libxvmc/viaLowLevel.c >@@ -277,10 +277,14 @@ viaDMAInitTimeStamp(XvMCLowLevel * xl) > xl->tsMem.size = 64; > xl->tsMem.type = VIA_MEM_VIDEO; > if (drmCommandWriteRead(xl->fd, DRM_VIA_ALLOCMEM, &xl->tsMem, >- sizeof(xl->tsMem)) < 0) >+ sizeof(xl->tsMem)) < 0) { >+ fprintf(stderr, "DRM_VIA_ALLOCMEM failed size %d\n", sizeof(xl->tsMem)); > return ret; >- if (xl->tsMem.size != 64) >+ } >+ if (xl->tsMem.size != 64) { >+ fprintf(stderr, "error: tsMem.size is %d\n", tsMem.size); > return -1; >+ } > xl->tsOffset = (xl->tsMem.offset + 31) & ~31; > xl->tsP = (CARD32 *) xl->fbAddress + (xl->tsOffset >> 2); > xl->curTimeStamp = 1; >@@ -1014,8 +1018,10 @@ initXvMCLowLevel(int fd, drm_context_t * > > xl = (XvMCLowLevel *) malloc(sizeof(XvMCLowLevel)); > >- if (!xl) >+ if (!xl) { >+ fprintf(stderr, "malloc failed\n"); > return NULL; >+ } > > xl->agp_pos = 0; > xl->pci_pos = 0; >@@ -1031,6 +1037,7 @@ initXvMCLowLevel(int fd, drm_context_t * > xl->agpSync = 0; > ret = viaDMAInitTimeStamp(xl); > if (ret) { >+ fprintf(stderr, "viaDMAInitTimeStamp failed with code %d\n", ret); > free(xl); > return NULL; > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 228473
: 173349 |
173392
|
173424
|
173540