summaryrefslogtreecommitdiffstats
path: root/src/mapi
Commit message (Collapse)AuthorAgeFilesLines
* glthread: sort variables in marshal structures to pack them optimallyMarek Olšák2020-04-271-1/+39
| | | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4758>
* glthread: use GLenum16 in batch buffers to save spaceMarek Olšák2020-04-271-1/+4
| | | | | Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4758>
* mesa: remove exec="dynamic" from Draw functions that are not really dynamicMarek Olšák2020-04-278-22/+22
| | | | | Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4758>
* mesa: add support for AlphaToCoverageDitherControlNVIndrajit Kumar Das2020-04-234-0/+24
| | | | | Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4543>
* remove final imports.h and imports.c bitsDylan Baker2020-04-213-3/+2
| | | | | | | | | | | This moves the fi_types to a new mesa_private.h and removes the imports.c file. The vast majority of this patch is just removing pound includes of imports.h and fixing up the recursive includes. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Matt Turner <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
* mesa|mapi: replace _mesa_[v]snprintf with [v]snprintfDylan Baker2020-04-211-1/+2
| | | | | | | | | | MSVC 2015 and newer has perfectly valid snprintf and vsnprintf implementations, let's just use those. Reviewed-by: Marek Olšák <[email protected]> Reviewed-by: Kristian H. Kristensen <[email protected]> Reviewed-by: Matt Turner <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3024>
* mesa: fix enum value of VIEWPORT_SWIZZLE_POSITIVE_W_NVKarol Herbst2020-04-151-1/+1
| | | | | | | | Fixes: ff168b297d94 ("mesa: add GL_NV_viewport_swizzle support") Reported-by: Roy Spliet <[email protected]> Signed-off-by: Karol Herbst <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4567>
* mesa: add GL_NV_viewport_swizzle supportIlia Mirkin2020-04-124-0/+38
| | | | | | Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4519>
* scons: Prune out unnecessary targets.Jose Fonseca2020-03-301-130/+0
| | | | | | | | | | | | | | | | This prunes out all targets except libgl-gdi, libgl-xlib, and svga, as suggested by Marek Olšák. libgl-xlib will be remove once I have had time to confirm no automated tests we have rely upon it. There are also a bunch of Makefile.sources which become orphaned as result, that are not taken care of in this change. v2: Prune remainders of swr support. Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4348> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4348>
* Move compiler.h and imports.h/c from src/mesa/main into src/utilMarek Olšák2020-03-273-2/+4
| | | | | Reviewed-by: Timothy Arceri <[email protected] Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4324>
* x86: Add ENDBR at function entriesH.J. Lu2020-03-263-0/+22
| | | | | | | | | | | | | | | | | | Intel Control-flow Enforcement Technology (CET): https://software.intel.com/en-us/articles/intel-sdm contains shadow stack (SHSTK) and indirect branch tracking (IBT). When IBT is enabled, all indirect branch targets must start with ENDBR instruction which is a NOP on non-CET processors. Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2538 Acked-by: Matt Turner <[email protected]> Reviewed-by: Dave Airlie <[email protected]> Reviewed-by: Ben Widawsky <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3865> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3865>
* glthread: compile marshal_generated.c faster by breaking it up into 8 filesMarek Olšák2020-03-242-13/+32
| | | | | | Reviewed-by: Alyssa Rosenzweig <[email protected] Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4270> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4270>
* glthread: declare marshal and unmarshal functions as non-staticMarek Olšák2020-03-242-7/+11
| | | | | | | | Declare them in the header file. Then we can split marshal_generated.c into multiple files. Reviewed-by: Alyssa Rosenzweig <[email protected] Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4270>
* glthread: inline SET_func and add -O1 to build _mesa_create_marshal_table fasterMarek Olšák2020-03-241-1/+9
| | | | | | | The compile time of marshal_generated.c improved from 30.1s to 12.4s. Reviewed-by: Eric Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4270>
* glthread: remove the marshal_fail XML attributeMarek Olšák2020-03-203-14/+0
| | | | | | Reviewed-by: Timothy Arceri <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124>
* glthread: ignore vertex arrays with user pointers if they're disabledMarek Olšák2020-03-205-19/+19
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124>
* glthread: track which vertex array attribs are enabledMarek Olšák2020-03-203-13/+26
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124>
* glthread: rename non_vbo helper functionsMarek Olšák2020-03-206-23/+23
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124>
* glthread: handle buffer unbinding via glDeleteBuffersMarek Olšák2020-03-201-1/+2
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124>
* glthread: rename marshal.h/c to glthread_marshal.h and glthread_shaderobj.cMarek Olšák2020-03-201-3/+1
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124>
* glthread: autogenerate prototypes for custom-marshalled functionsMarek Olšák2020-03-201-0/+9
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124>
* glthread: simplify printing safe_mul in gl_marshal.pyMarek Olšák2020-03-201-8/+8
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4124>
* glthread: don't declare unmarshal functions as inlineMarek Olšák2020-03-201-1/+1
| | | | | | | | They are never inlined. Reviewed-by: Timothy Arceri <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251>
* glthread: remove debug_print_marshal functionMarek Olšák2020-03-201-2/+0
| | | | | | | We don't need to print every function we execute. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251>
* glthread: don't execute any custom VAO and BindBuffer code in the Core profileMarek Olšák2020-03-208-24/+26
| | | | | | | It's not needed, because user pointers can never occur there. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251>
* glthread: track VAOs created by CreateVertexArraysMarek Olšák2020-03-201-1/+2
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251>
* glthread: enable display listsMarek Olšák2020-03-201-1/+1
| | | | | | | They seem to work fine. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4251>
* mesa: remove redundant api_loopback functionsMarek Olšák2020-03-192-10/+10
| | | | | | | | | vbo_attrib_tmp.h implements them, so this loopback code isn't needed and shouldn't be used. Acked-by: Pierre-Eric Pelloux-Prayer <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4123> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4123>
* glthread: fall back if a param size is non-zero and a pointer param is NULLMarek Olšák2020-03-061-0/+1
| | | | | | | | So that we don't crash. This is a GL error anyway. Reviewed-by: Timothy Arceri <[email protected]> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: add custom marshalling for glNamedBuffer(Sub)DataEXTMarek Olšák2020-03-061-2/+2
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: replace custom glBindBuffer marshalling with generated oneMarek Olšák2020-03-061-1/+2
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: sync instead of disabling glthread for non-VBO pointersMarek Olšák2020-03-069-22/+34
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: track for each VAO whether the user has set a user pointerMarek Olšák2020-03-069-29/+38
| | | | | | | | | | | | This commit mainly adds basic infrastructure for tracking vertex array state. If glthread gets a non-VBO pointer, this commit delays disabling glthread until glDraw is called. The next will change that to "sync" instead of "disable". Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: add marshal_call_after and remove custom glFlush and glEnable codeMarek Olšák2020-03-064-11/+15
| | | | | | | | Instead of implementing marshalling manually, this XML property allows us to insert additional code into code-generated functions. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: don't insert an empty line after (void) cmd;Marek Olšák2020-03-061-1/+1
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: add support for glMemoryObjectParameteriv, glSemaphoreParameterui64vMarek Olšák2020-03-061-2/+2
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: add support for glCallLists, glPatchParameterfvMarek Olšák2020-03-062-2/+3
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: add support for glClearNamedFramebuffer, glMaterial, glPointParameterMarek Olšák2020-03-063-9/+15
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: add support for glFog, glLight, glLightModel, glTexEnv, glTexGenMarek Olšák2020-03-064-21/+37
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: add support for TexParameteri and SamplerParameteri functionsMarek Olšák2020-03-0611-33/+42
| | | | | | | | | | It's straightfoward except that I had to hack the python scripts to add "marshal_count", which behaves just like "count" except that "variable_param" is ignored. ("variable_param" changes the behavior of "count", which I don't want) Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: replace custom ClearBuffer marshalling with generated oneMarek Olšák2020-03-061-7/+7
| | | | | | | If the count attribute contains "enum", the count is evaluated only once. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: check the size of all variable params and clean up the codeMarek Olšák2020-03-061-25/+16
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: handle complex pointer parameters and support GL functions with ↵Marek Olšák2020-03-065-18/+17
| | | | | | | | | | strings The python changes add a local variable that computes the parameter size only once. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: add/update count and marshal fields for many GL functionsMarek Olšák2020-03-0624-132/+141
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: add GL_DRAW_INDIRECT_BUFFER tracking and generator supportMarek Olšák2020-03-061-1/+3
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: don't increment variable_data if it's the last variable-size paramMarek Olšák2020-03-061-8/+15
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: don't insert _mesa_post_marshal_hook into every functionMarek Olšák2020-03-061-1/+3
| | | | | | | Let the developer decide that in the python script. Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: simplify repeated function sequences in marshal_generated.cMarek Olšák2020-03-061-6/+3
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: use int instead of size_t where it's OKMarek Olšák2020-03-061-1/+1
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>
* glthread: inline _mesa_unmarshal_dispatch_cmd and convert the switch to a tableMarek Olšák2020-03-062-21/+4
| | | | | Reviewed-by: Timothy Arceri <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/3948>