Re: [Mesa-dev] Request for Mentor - XorgEvoc - Piglit for VA-API

2018-09-09 Thread Christian König

Am 09.09.2018 um 12:49 schrieb Naveen Naidu:
On Sun 9 Sep, 2018, 4:06 PM Christian König, 
> wrote:


Am 09.09.2018 um 09:55 schrieb Naveen Naidu:


Thank you for the information. Yes I have a AMD GPU, It is a
Radeon r5 m430. But unfortunately it does not have a video
decoder. But I also have an integrated Intel HD 620 GPU, it's a
kabylake and It had a video encoder and video decoder. I have
already discussed about this with Alex Deuscher and he said that
I will be fine with Intel HD 620 and I can carry on with the project.

If you don't mind can you please let me know if i am on the right
track?


Yeah, that should indeed work from the hardware side.

But it could be a problem for mentoring you since we are obviously
interested in improving the VA-API state tracker for AMD hardware.


Does this mean I cannot work on this project?


Well it depends. It means that you won't test with AMD hardware. So if 
you mentor works for AMD and doesn't has the Intel stack available it 
could get really tricky to reproduce and test things.


On the other hand you could ask if one of the Intel guys wants to mentor 
you.


Will it be okay, If I write a proposal using the current hardware and 
once the proposal get selected, I could buy the required hardware.


That could work, but I'm not sure if that fits the requirements for a 
proposal from Google.



Is it possible to write a proposal without the hardware?

It would be really kind of you, if you could let me know any other 
project that is compatible with my hardware.


 I was also looking into the project "Unit Performance tests for VA-API".

Will this be a suitable fit with my hardware.


Same problem with that one.

Regards,
Christian.






Thank you very much for your time

P.S:- Sorry for the starting a new thread with the last mail. I
am new to mailing list. I will see to that I do not repeat the
same mistake.


Well starting a new thread is not much of an issue, but you could
at least remove the digest mail body :)

Regards,
Christian.



P . Naveen Naidu





___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] Request for Mentor - XorgEvoc - Piglit for VA-API

2018-09-09 Thread Naveen Naidu
On Sun 9 Sep, 2018, 4:06 PM Christian König, <
ckoenig.leichtzumer...@gmail.com> wrote:

> Am 09.09.2018 um 09:55 schrieb Naveen Naidu:
>
>
> Thank you for the information. Yes I have a AMD GPU, It is a Radeon r5
> m430. But unfortunately it does not have a video decoder. But I also have
> an integrated Intel HD 620 GPU, it's a kabylake and It had a video encoder
> and video decoder. I have already discussed about this with Alex Deuscher
> and he said that I will be fine with Intel HD 620 and I can carry on with
> the project.
>
> If you don't mind can you please let me know if i am on the right track?
>
>
> Yeah, that should indeed work from the hardware side.
>
> But it could be a problem for mentoring you since we are obviously
> interested in improving the VA-API state tracker for AMD hardware.
>

Does this mean I cannot work on this project? Will it be okay, If I write a
proposal using the current hardware and once the proposal get selected, I
could buy the required hardware.

Is it possible to write a proposal without the hardware?

It would be really kind of you, if you could let me know any other project
that is compatible with my hardware.

 I was also looking into the project "Unit Performance tests for VA-API".

Will this be a suitable fit with my hardware.


>
> Thank you very much for your time
>
> P.S:- Sorry for the starting a new thread with the last mail. I am new to
> mailing list. I will see to that I do not repeat the same mistake.
>
>
> Well starting a new thread is not much of an issue, but you could at least
> remove the digest mail body :)
>
> Regards,
> Christian.
>
>
> P . Naveen Naidu
>
>
>
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] Request for Mentor - XorgEvoc - Piglit for VA-API

2018-09-09 Thread Christian König

Am 09.09.2018 um 09:55 schrieb Naveen Naidu:


Thank you for the information. Yes I have a AMD GPU, It is a Radeon r5 
m430. But unfortunately it does not have a video decoder. But I also 
have an integrated Intel HD 620 GPU, it's a kabylake and It had a 
video encoder and video decoder. I have already discussed about this 
with Alex Deuscher and he said that I will be fine with Intel HD 620 
and I can carry on with the project.


If you don't mind can you please let me know if i am on the right track?


Yeah, that should indeed work from the hardware side.

But it could be a problem for mentoring you since we are obviously 
interested in improving the VA-API state tracker for AMD hardware.




Thank you very much for your time

P.S:- Sorry for the starting a new thread with the last mail. I am new 
to mailing list. I will see to that I do not repeat the same mistake.


Well starting a new thread is not much of an issue, but you could at 
least remove the digest mail body :)


Regards,
Christian.



P . Naveen Naidu



___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


Re: [Mesa-dev] Request for Mentor - XorgEvoc - Piglit for VA-API

2018-09-09 Thread Naveen Naidu
ssage-ID: 
> Content-Type: text/plain; charset="utf-8"
>
> https://bugs.freedesktop.org/show_bug.cgi?id=107870
>
> Bug ID: 107870
>Summary: Undefined symbols for architecture x86_64:
> "_util_cpu_caps"
>Product: Mesa
>Version: git
>   Hardware: x86-64 (AMD64)
> OS: Mac OS X (All)
> Status: NEW
>   Keywords: regression
>   Severity: normal
>   Priority: medium
>  Component: Mesa core
>   Assignee: mesa-dev@lists.freedesktop.org
>   Reporter: v...@freedesktop.org
> QA Contact: mesa-dev@lists.freedesktop.org
> CC: baker.dyla...@gmail.com
>
> CXXLDmesa_dri_drivers.la
> Undefined symbols for architecture x86_64:
>   "_util_cpu_caps", referenced from:
>   _util_fpstate_get in libmesa.a(libmesautil_la-u_math.o)
>   _util_fpstate_set_denorms_to_zero in
> libmesa.a(libmesautil_la-u_math.o)
>   _util_fpstate_set in libmesa.a(libmesautil_la-u_math.o)
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
> You are the QA Contact for the bug.
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> https://lists.freedesktop.org/archives/mesa-dev/attachments/20180909/d81eb216/attachment-0001.html
> >
>
> --
>
> Message: 4
> Date: Sat,  8 Sep 2018 23:39:44 -0700
> From: Dylan Baker 
> To: mesa-dev@lists.freedesktop.org
> Subject: [Mesa-dev] [PATCH] utils/u_math: break dependency on
> gallium/utils
> Message-ID: <20180909063944.3230-1-dy...@pnwbakers.com>
>
> Currently u_math needs gallium utils for cpu detection.  Most of what
> u_math uses out of u_cpu_detection is duplicated in src/mesa/x86
> (surprise!), so I've just reworked it as much as possible to use the
> x86/common_x86_features macros instead of the gallium ones. There is
> one small function that was copied over, as promoting u_cpu_detection is
> itself a fairly hefty undertaking, as it depends on u_debug, and this
> fixes the bug for now.
>
> bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107870
> cc: v...@freedesktop.org
> ---
>
> I have no idea if this fixes the build on mac, I had this in a branch
> where I
> started replacing more of imports.{h,c} with utils stuff, and this fixes
> some
> build problems on Linux. I don't have a mac to test on and I wont until
> Monday.
> If this works let me know.
>
>  src/util/u_math.c | 43 ++-
>  1 file changed, 38 insertions(+), 5 deletions(-)
>
> diff --git a/src/util/u_math.c b/src/util/u_math.c
> index c58af911be7..bf0c398eeec 100644
> --- a/src/util/u_math.c
> +++ b/src/util/u_math.c
> @@ -29,7 +29,7 @@
>
>  #include "pipe/p_config.h"
>  #include "util/u_math.h"
> -#include "util/u_cpu_detect.h"
> +#include "x86/common_x86_features.h"
>
>  #if defined(PIPE_ARCH_SSE)
>  #include 
> @@ -90,7 +90,7 @@ util_fpstate_get(void)
> unsigned mxcsr = 0;
>
>  #if defined(PIPE_ARCH_SSE)
> -   if (util_cpu_caps.has_sse) {
> +   if (cpu_has_xmm) {
>mxcsr = _mm_getcsr();
> }
>  #endif
> @@ -98,6 +98,31 @@ util_fpstate_get(void)
> return mxcsr;
>  }
>
> +/* TODO: this was copied from u_cpu_detection. It's another case of
> duplication
> + * between gallium and core mesa, and it would be nice to get rid of that
> + * duplication as well.
> + */
> +#if defined(PIPE_ARCH_X86)
> +PIPE_ALIGN_STACK static inline bool sse2_has_daz(void)
> +{
> +   struct {
> +  uint32_t pad1[7];
> +  uint32_t mxcsr_mask;
> +  uint32_t pad2[128-8];
> +   } PIPE_ALIGN_VAR(16) fxarea;
> +
> +   fxarea.mxcsr_mask = 0;
> +#if defined(PIPE_CC_GCC)
> +   __asm __volatile ("fxsave %0" : "+m" (fxarea));
> +#elif defined(PIPE_CC_MSVC) || defined(PIPE_CC_ICL)
> +   _fxsave();
> +#else
> +   fxarea.mxcsr_mask = 0;
> +#endif
> +   return !!(fxarea.mxcsr_mask & (1 << 6));
> +}
> +#endif
> +
>  /**
>   * Make sure that the fp treats the denormalized floating
>   * point numbers as zero.
> @@ -108,13 +133,21 @@ unsigned
>  util_fpstate_set_denorms_to_zero(unsigned current_mxcsr)
>  {
>  #if defined(PIPE_ARCH_SSE)
> -   if (util_cpu_caps.has_sse) {
> +   if (cpu_has_xmm) {
>/* Enable flush to zero mode */
>current_mxcsr |= _MM_FLUSH_ZERO_MASK;
> -  if (util_cpu_caps.has_daz) {
> +  /* x86_64 cpus always have daz, as do cpus with sse3 in fact,
> there's
> +   * basi

Re: [Mesa-dev] Request for Mentor - XorgEvoc - Piglit for VA-API

2018-09-09 Thread Benson Muite

Welcome! From the page:

https://www.x.org/wiki/SummerOfCodeIdeas/

Might try and ping Christian König. Do you have an AMD GPU?

Benson

On 09/09/2018 09:41 AM, Naveen Naidu wrote:

Hello Everyone,

I am Naveen a Junior year computer science undergrad from India. I 
really apologize for disturbing you all again. But I have been going 
through the available projects for the XorgEVoC program and the 
project *Piglit for VA-API *caught my attention. I have mailed last 
week looking out for mentors for the project, but unfortunately this 
email did not receive attention due to the busy schedule at Xorg I guess.


I have been working on the project since the last time I mailed asking 
for directions. As Alex mentioned in his reply, I have read through 
the piglit documentation and am now sufficiently familiar with piglit.


Things that I have done until now:-

 1. Read through the Piglit documentation (Capable of understanding
and writing small tests using piglit)
 2. Compiled gstreamer, and also set up the gst-uninstalled environment.
 3. Understood about the architecture of gstreamer.
 4. Currently reading about VA-API.
 5. Planning to implement a simple VA-API app to better understand the
type of tests I need to write for VA-API


I am comfortable with both C and Python and given the skill set I am 
confident of accomplishing the project. I would thus like to discuss 
the details and deliverable of the project with my potential mentor 
and would like to know how I can proceed with the project.


Since no potential mentor was mentioned in the Idea's Page, it would 
be really kind of someone if they are willing to be a mentor for the 
project. I can assure you that I will put the best of my efforts and 
dedication into the project and will see that the project is completed.


Thank you for your valuable time.

Regards,
Naveen Naidu
https://github.com/Naveenaidu



___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev


[Mesa-dev] Request for Mentor - XorgEvoc - Piglit for VA-API

2018-09-09 Thread Naveen Naidu
Hello Everyone,

I am Naveen a Junior year computer science undergrad from India. I really
apologize for disturbing you all again. But I have been going through the
available projects for the XorgEVoC program and the project *Piglit for
VA-API *caught my attention. I have mailed last week looking out for
mentors for the project, but unfortunately this email did not receive
attention due to the busy schedule at Xorg I guess.

I have been working on the project since the last time I mailed asking for
directions. As Alex mentioned in his reply, I have read through the piglit
documentation and am now sufficiently familiar with piglit.

Things that I have done until now:-

   1. Read through the Piglit documentation (Capable of understanding and
   writing small tests using piglit)
   2. Compiled gstreamer, and also set up the gst-uninstalled environment.
   3. Understood about the architecture of gstreamer.
   4. Currently reading about VA-API.
   5. Planning to implement a simple VA-API app to better understand the
   type of tests I need to write for VA-API


I am comfortable with both C and Python and given the skill set I am
confident of accomplishing the project. I would thus like to discuss the
details and deliverable of the project with my potential mentor and would
like to know how I can proceed with the project.

Since no potential mentor was mentioned in the Idea's Page, it would be
really kind of someone if they are willing to be a mentor for the project.
I can assure you that I will put the best of my efforts and dedication into
the project and will see that the project is completed.

Thank you for your valuable time.

Regards,
Naveen Naidu
https://github.com/Naveenaidu
___
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev