[Mesa-dev] [PATCH 17/24] targets/omx: define GALLIUM_TRACE when using the trace driver

Christian König christian.koenig at amd.com
Fri Mar 28 03:48:46 PDT 2014


Am 28.03.2014 11:32, schrieb Emil Velikov:
> On 28/03/14 09:40, Christian König wrote:
>> Am 27.03.2014 22:00, schrieb Emil Velikov:
>>> Otherwise the omx drivers are explicitly linked but never wrapped in
>>> order to use it.
>> On the other hand I'm not sure if we really need the tracer linked in here,
>> referencing it was just to make drm_target.c happy.
>>
> Fair enough, although I'm not sure what you're implying with "make
> drm_target.c happy" here. AFAICS the tracer should be mentioned only when the
> define is present.

If I remember correctly I've got an undefined symbol with this. But that 
was with the VDPAU state tracker and I just copied over to OMX.

In general neither the VDPAU nor the OMX targets should need the tracer 
since they work with the video codec anyway and I never defined any 
trace functionality for them.

> And indeed, dropping the define + driver from LIBADD does build. Build tested
> only, due to lack of hw :(

Ok, please drop that patch for now. Or even better, make one that 
removes the tracer from the VDPAU/OMX tragets and send it out with a 
request for testing.

Christian.

> -Emil
>
>> Christian.
>>
>>> Cc: Christian König <christian.koenig at amd.com>
>>> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
>>> ---
>>>    src/gallium/targets/r600/omx/Makefile.am     | 3 ++-
>>>    src/gallium/targets/radeonsi/omx/Makefile.am | 3 ++-
>>>    2 files changed, 4 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/src/gallium/targets/r600/omx/Makefile.am
>>> b/src/gallium/targets/r600/omx/Makefile.am
>>> index 22ef08f..0bae51b 100644
>>> --- a/src/gallium/targets/r600/omx/Makefile.am
>>> +++ b/src/gallium/targets/r600/omx/Makefile.am
>>> @@ -31,7 +31,8 @@ AM_CFLAGS = \
>>>        $(LIBDRM_CFLAGS)
>>>    AM_CPPFLAGS = \
>>>        -I$(top_srcdir)/src/gallium/drivers \
>>> -    -I$(top_srcdir)/src/gallium/winsys
>>> +    -I$(top_srcdir)/src/gallium/winsys \
>>> +    -DGALLIUM_TRACE
>>>      omxdir = $(OMX_LIB_INSTALL_DIR)
>>>    omx_LTLIBRARIES = libomx_r600.la
>>> diff --git a/src/gallium/targets/radeonsi/omx/Makefile.am
>>> b/src/gallium/targets/radeonsi/omx/Makefile.am
>>> index 439e91c..c0e0218 100644
>>> --- a/src/gallium/targets/radeonsi/omx/Makefile.am
>>> +++ b/src/gallium/targets/radeonsi/omx/Makefile.am
>>> @@ -31,7 +31,8 @@ AM_CFLAGS = \
>>>        $(LIBDRM_CFLAGS)
>>>    AM_CPPFLAGS = \
>>>        -I$(top_srcdir)/src/gallium/drivers \
>>> -    -I$(top_srcdir)/src/gallium/winsys
>>> +    -I$(top_srcdir)/src/gallium/winsys \
>>> +    -DGALLIUM_TRACE
>>>      omxdir = $(OMX_LIB_INSTALL_DIR)
>>>    omx_LTLIBRARIES = libomx_radeonsi.la
>>
>




More information about the mesa-dev mailing list