-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add trace for vaExportSurfaceHandle #724
Conversation
5724592
to
c87aa01
Compare
|
||
VADRMPRIMESurfaceDescriptor *desc = (VADRMPRIMESurfaceDescriptor *)descriptor; | ||
|
||
va_TraceMsg(trace_ctx, "\tfourcc = %u\n", desc->fourcc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will crash if descriptor is NULL. Parent function (vaExportSurfaceHandle
) does not check that (and it should not). Add check here, please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in last version, see line 6343 above.
va/va_trace.c
Outdated
} | ||
|
||
DPY2TRACE_VIRCTX_EXIT(pva_trace); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add empty line in end of file
va_TraceMsg(trace_ctx, "\tmemType = 0x%08x\n", memType); | ||
va_TraceMsg(trace_ctx, "\tflags = 0x%08x\n", flags); | ||
|
||
VADRMPRIMESurfaceDescriptor *desc = (VADRMPRIMESurfaceDescriptor *)descriptor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As noted at
Lines 4054 to 4055 in 984dfee
* with the handle details. The type of this structure depends on | |
* the value of mem_type. |
You can't assume it's VADRMPRIMESurfaceDescriptor
without checking memType
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in last version, see line 6337 above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good
va_TraceMsg(trace_ctx, "\tmemType = 0x%08x\n", memType); | ||
va_TraceMsg(trace_ctx, "\tflags = 0x%08x\n", flags); | ||
|
||
VADRMPRIMESurfaceDescriptor *desc = (VADRMPRIMESurfaceDescriptor *)descriptor; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in last version, see line 6337 above.
|
||
VADRMPRIMESurfaceDescriptor *desc = (VADRMPRIMESurfaceDescriptor *)descriptor; | ||
|
||
va_TraceMsg(trace_ctx, "\tfourcc = %u\n", desc->fourcc); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in last version, see line 6343 above.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
84d007c
to
67166dc
Compare
No description provided.