[Mesa-dev] [PATCH] EGL/mesa: Initial writeup for MESA_query_renderer
Haehnle, Nicolai
Nicolai.Haehnle at amd.com
Mon Nov 5 08:27:03 UTC 2018
On 05.11.18 05:48, Veluri Mithun wrote:
> Sry for the late, I had internal exams last month.
>
> the EGL version of the extension to the new document. The EGL enums
> will probably be different, so maybe replace the enum values with 0xXXXX
> for now.
>
> What are these tokens(enum values) for?
I don't understand this question. Enum constants need to have a value
assigned to them -- is that what you're asking?
> and how should one assign some
> hexadecimal value to them? We need to add them
> in include/EGL/eglmesaext.h right?
This is all supposed to be derived from the XML registries, in this
case, egl.xml.
If you search that file for "MESA", you'll find various ranges of enum
values that have been reserved for Mesa. I think you'll be able to find
sufficiently many free numeric values that you can assign by making the
appropriate change in the XML. (Like the extension text, these additions
ultimately need to go upstream to Khronos.)
Cheers,
Nicolai
>
>
> The GLX implementation uses DRI infrastructure for most of the real
> work. It should be pretty easy to copy most of
> src/glx/dri_common_query_renderer.c over to EGL.
>
> In the next patch I'll try to finish this.
>
> Thanks,
> Veluri.
More information about the mesa-dev
mailing list