Dave Airlie
ff8c2a1748
mesa/bufferobj: rename bufferobj functions to be more consistent.
...
After all the refactoring, start consolidating a bit and get the API
names more consistent
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133 >
2021-12-15 13:29:33 +00:00
Dave Airlie
f6840bb940
mesa/st: make static the buffer object funcs that can be
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133 >
2021-12-15 13:29:33 +00:00
Dave Airlie
7288fcdc72
mesa/st: migrate most of state tracker buffer objects into mesa
...
This moves all of non-optional st functions into the main bufferobj.c
file.
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133 >
2021-12-15 13:29:33 +00:00
Dave Airlie
8232cf1b4d
mesa: add pointer to cso_context to gl_context
...
Makes migrating code easier
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133 >
2021-12-15 13:29:33 +00:00
Dave Airlie
22607020f5
mesa: add a pointer to st_config_options to gl_context
...
Allows porting out of st code easier
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133 >
2021-12-15 13:29:33 +00:00
Dave Airlie
f6c608dd24
mesa: add a pipe_context pointer to gl context
...
This will be used to move more code over
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133 >
2021-12-15 13:29:33 +00:00
Dave Airlie
90cb1493b7
mesa/st: start moving bufferobject alloc/free/reference to main.
...
This moves these out of the state tracker code
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133 >
2021-12-15 13:29:33 +00:00
Dave Airlie
970daedb1d
mesa/st: merge st buffer object into GL
...
Reviewed-by: Marek Olšák <marek.olsak@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14133 >
2021-12-15 13:29:33 +00:00
Alejandro Piñeiro
1c4f76672d
broadcom/compiler: avoid unneeded sint/unorm clamping when lowering stores
...
They are being used on integer to integer stores. From Vulkan sec,
final paragraph of 16.4.4 "Texel Output Format Conversion":
"Each component is converted based on its type and size (as
defined in the Format Definition section for each
VkFormat). ... Integer outputs are converted such that their value
is preserved. The converted value of any integer that cannot be
represented in the target format is undefined."
I didn't find a equivalent quote for OpenGL as all conversion entries
are forcused on float to integer, fixed-point to integer, etc, and not
on integer to integer. Didn't find any test failure with this change.
We didn't get any shader-db stats change with shaderdb (even
overriding to OpenGL 4.4 to get more shaders built), so as a reference
Vulkan shader-db stats with the pattern
dEQP-VK.image.*.with_format.*.*
total instructions in shared programs: 37534 -> 36522 (-2.70%)
instructions in affected programs: 12080 -> 11068 (-8.38%)
helped: 241
HURT: 0
Instructions are helped.
total uniforms in shared programs: 9100 -> 8550 (-6.04%)
uniforms in affected programs: 3004 -> 2454 (-18.31%)
helped: 229
HURT: 0
total max-temps in shared programs: 6110 -> 6014 (-1.57%)
max-temps in affected programs: 402 -> 306 (-23.88%)
helped: 43
HURT: 0
Max-temps are helped.
total nops in shared programs: 1523 -> 1526 (0.20%)
nops in affected programs: 21 -> 24 (14.29%)
helped: 3
HURT: 6
Inconclusive result (value mean confidence interval includes 0).
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14194 >
2021-12-15 11:53:20 +00:00
Samuel Pitoiset
cca8803e6b
radv/winsys: update sparse mappings with OP_REPLACE instead of OP_MAP/OP_UNMAP
...
When the BO is NULL, AMDGPU will reset the PTE VA range to the initial
state. Otherwise, it will first unmap all existing VA that overlap the
requested range and then map. This seems better than using MAP/UNMAP.
This reduces stuttering in Forza Horizon 5.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14116 >
2021-12-15 08:17:29 +01:00
Samuel Pitoiset
a6ca0a8c52
radv/winsys: stop using reference counting for virtual BOs
...
This shouldn't be necessary because applications have to manage
resources and memory themselves.
This also prevented memory to be freed if an application doesn't unbind
a sparse memory object and free it, which is legal as long as the
resource isn't used afterwards.
This was introduced to unmap the sparse mappings when destroying
a virtual BO, but now that the driver uses OP_CLEAR it's no longer
needed.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14116 >
2021-12-15 08:17:26 +01:00
Samuel Pitoiset
a931d5a4a4
radv/winsys: clear the PRT VA range when destroying a virtual BO
...
Instead of unmapping every range.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14116 >
2021-12-15 08:17:24 +01:00
Samuel Pitoiset
782474782b
radv/winsys: remove useless has_sparse_vm_mappings checks
...
Sparse is only exposed on GFX8+, so this is always TRUE.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com >
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14116 >
2021-12-15 08:17:22 +01:00
Jason Ekstrand
b05d228695
Revert "anv: Stop doing too much per-sample shading"
...
This reverts commit 1f559930b6
. Turns
out, this approach won't work.
Fixes: 1f559930b6
("anv: Stop doing too much per-sample shading")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14196 >
2021-12-14 18:09:03 +00:00
Marek Olšák
ae4065f0b2
mesa: use nop dispatch for ColorTable/Convolution/Histogram
...
The nop dispatch generates GL_INVALID_OPERATION too.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:29:00 -05:00
Marek Olšák
7994b6c893
mesa: remove all GL func forward declarations because they are autogenerated
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:28:58 -05:00
Marek Olšák
0ca96f5cf6
mesa,vbo: make ES wrapper functions static
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:28:57 -05:00
Marek Olšák
4c91c6162b
glapi: add missing no_error settings for implemented functions
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:28:49 -05:00
Marek Olšák
9a9d14fa4d
mesa: remove COPY_DISPATCH code that doesn't do anything
...
When we get into create_beginend_table, ctx->Exec only contains nops
set by _mesa_alloc_dispatch_table. This function calls
_mesa_alloc_dispatch_table too, so table and ctx->Exec are identical,
and then it copies identical entries from one table to the other.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:01:09 -05:00
Marek Olšák
933a88f76c
mesa: rename _ae_ArrayElement -> _mesa_ArrayElement to match glapi
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:01:08 -05:00
Marek Olšák
e49d9c0fed
mesa: use ctx->GLThread.enabled now that it's correct
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:01:07 -05:00
Marek Olšák
d052612317
glthread: disable glthread if the context is lost
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:01:06 -05:00
Marek Olšák
9d8301d602
glthread: fix restoring the dispatch in destroy when the context is not current
...
also remove an invalid comment in mtypes.h
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:01:05 -05:00
Marek Olšák
670759a208
glthread: inline _mesa_glthread_restore_dispatch and merge disable & destroy
...
No change in behavior.
This fixes ctx->GLThread.enabled, which was only set to false by destroy.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:01:02 -05:00
Marek Olšák
7b123ad16a
glthread: set marshal functions in dispatch only if they exist in the API
...
We now have proper nop dispatch for the unset functions.
The autogenerated code looks like this:
if ((ctx->API == API_OPENGLES2 && ctx->Version >= 31)) {
if (_gloffset_DepthRangeArrayfvOES >= 0)
((_glapi_proc *)(ctx->MarshalExec))[_gloffset_DepthRangeArrayfvOES] = (_glapi_proc)_mesa_marshal_DepthRangeArrayfvOES;
if (_gloffset_DepthRangeIndexedfOES >= 0)
((_glapi_proc *)(ctx->MarshalExec))[_gloffset_DepthRangeIndexedfOES] = (_glapi_proc)_mesa_marshal_DepthRangeIndexedfOES;
}
if (_mesa_is_desktop_gl(ctx)) {
if (_gloffset_AlphaToCoverageDitherControlNV >= 0)
((_glapi_proc *)(ctx->MarshalExec))[_gloffset_AlphaToCoverageDitherControlNV] = (_glapi_proc)_mesa_marshal_AlphaToCoverageDitherControlNV;
if (_gloffset_AttachObjectARB >= 0)
((_glapi_proc *)(ctx->MarshalExec))[_gloffset_AttachObjectARB] = (_glapi_proc)_mesa_marshal_AttachObjectARB;
if (_gloffset_BeginQueryIndexed >= 0)
((_glapi_proc *)(ctx->MarshalExec))[_gloffset_BeginQueryIndexed] = (_glapi_proc)_mesa_marshal_BeginQueryIndexed;
if (_gloffset_BindBufferOffsetEXT >= 0)
((_glapi_proc *)(ctx->MarshalExec))[_gloffset_BindBufferOffsetEXT] = (_glapi_proc)_mesa_marshal_BindBufferOffsetEXT;
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:42 -05:00
Marek Olšák
e93a9b422c
glthread: add nop dispatch
...
so that glthread behaves the same as the main dispatch.
Also fix the SetError function for GLES 1.0.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:40 -05:00
Marek Olšák
dd3709dcfd
vbo: expose all exec entrypoints for glthread and match api_exec_decl.h names
...
Autogenerated glthread code will call these directly.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:38 -05:00
Marek Olšák
bade2407fa
mesa: remove GLvertexformat
...
Function pointers were first set in GLvertexformat, and then
GLvertexformat was copied to the dispatch.
This just sets the function pointers in the dispatch directly,
skipping the intermediate GLvertexformat structure.
The code with SET_* calls is autogenerated by api_vtxfmt_init_h.py.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:35 -05:00
Marek Olšák
a87e5d437e
glapi: autogenerate install_vtxfmt with python
...
This is a prerequisite for the GLvertexformat removal.
The autogenerated file looks like this:
if (_mesa_is_desktop_gl(ctx) || (ctx->API == API_OPENGLES2 && ctx->Version >= 30)) {
SET_VertexAttribI4iEXT(tab, NAME(VertexAttribI4iEXT));
SET_VertexAttribI4ivEXT(tab, NAME(VertexAttribI4ivEXT));
SET_VertexAttribI4uiEXT(tab, NAME(VertexAttribI4uiEXT));
SET_VertexAttribI4uivEXT(tab, NAME(VertexAttribI4uivEXT));
}
if (ctx->API == API_OPENGLES2) {
SET_VertexAttrib1fARB(tab, NAME_ES(VertexAttrib1fARB));
SET_VertexAttrib1fvARB(tab, NAME_ES(VertexAttrib1fvARB));
SET_VertexAttrib2fARB(tab, NAME_ES(VertexAttrib2fARB));
SET_VertexAttrib2fvARB(tab, NAME_ES(VertexAttrib2fvARB));
SET_VertexAttrib3fARB(tab, NAME_ES(VertexAttrib3fARB));
SET_VertexAttrib3fvARB(tab, NAME_ES(VertexAttrib3fvARB));
SET_VertexAttrib4fARB(tab, NAME_ES(VertexAttrib4fARB));
SET_VertexAttrib4fvARB(tab, NAME_ES(VertexAttrib4fvARB));
}
if (ctx->API == API_OPENGL_COMPAT) {
SET_ArrayElement(tab, NAME_AE(ArrayElement));
SET_Begin(tab, NAME(Begin));
SET_CallList(tab, NAME_CALLLIST(CallList));
SET_CallLists(tab, NAME_CALLLIST(CallLists));
SET_Color3b(tab, NAME(Color3b));
SET_Color3bv(tab, NAME(Color3bv));
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:29 -05:00
Marek Olšák
1f33948733
glapi: autogenerate all _mesa_* forward declarations in api_exec_decl.h
...
We could remove them from other header files now.
This purposefully omits "_exec" in _mesa_exec such as _mesa_exec_Begin
to make it pretty. Later commits will remove _exec from names, e.g. it
will become _mesa_Begin. The only other variants are really just
save_Begin (dlist) and _save_Begin (vbo).
The autogenerated file looks like this:
void GLAPIENTRY _mesa_NewList(GLuint list, GLenum mode);
void GLAPIENTRY _mesa_EndList(void);
void GLAPIENTRY _mesa_CallList(GLuint list);
void GLAPIENTRY _mesa_CallLists(GLsizei n, GLenum type, const GLvoid * lists);
void GLAPIENTRY _mesa_DeleteLists(GLuint list, GLsizei range);
GLuint GLAPIENTRY _mesa_GenLists(GLsizei range);
void GLAPIENTRY _mesa_ListBase(GLuint base);
void GLAPIENTRY _mesa_Begin(GLenum mode);
void GLAPIENTRY _mesa_Bitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap);
void GLAPIENTRY _mesa_Color3b(GLbyte red, GLbyte green, GLbyte blue);
void GLAPIENTRY _mesa_Color3bv(const GLbyte * v);
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:25 -05:00
Marek Olšák
5603d3e42c
mesa: remove api_exec.h and move its contents into context.h
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:24 -05:00
Marek Olšák
898649c145
glapi: autogenerate api_save.h with save_* function declarations
...
This is planned to be used by glthread for its own dispatch mechanism.
The autogenerated file looks like this:
void GLAPIENTRY save_NewList(GLuint list, GLenum mode);
void GLAPIENTRY save_ListBase(GLuint base);
void GLAPIENTRY save_Bitmap(GLsizei width, GLsizei height, GLfloat xorig, GLfloat yorig, GLfloat xmove, GLfloat ymove, const GLubyte * bitmap);
void GLAPIENTRY save_RasterPos2d(GLdouble x, GLdouble y);
void GLAPIENTRY save_RasterPos2dv(const GLdouble * v);
void GLAPIENTRY save_RasterPos2f(GLfloat x, GLfloat y);
void GLAPIENTRY save_RasterPos2fv(const GLfloat * v);
void GLAPIENTRY save_RasterPos2i(GLint x, GLint y);
void GLAPIENTRY save_RasterPos2iv(const GLint * v);
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:20 -05:00
Marek Olšák
df3447c331
glapi: autogenerate _mesa_initialize_save_table with python
...
The generated file looks like this:
SET_NewList(table, save_NewList);
SET_ListBase(table, save_ListBase);
SET_Bitmap(table, save_Bitmap);
SET_RasterPos2d(table, save_RasterPos2d);
SET_RasterPos2dv(table, save_RasterPos2dv);
SET_RasterPos2f(table, save_RasterPos2f);
SET_RasterPos2fv(table, save_RasterPos2fv);
SET_RasterPos2i(table, save_RasterPos2i);
SET_RasterPos2iv(table, save_RasterPos2iv);
SET_RasterPos2s(table, save_RasterPos2s);
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:19 -05:00
Marek Olšák
d7c5161242
glapi: move reusable glapi printing code to apiexec.py
...
This will be used by all new scripts.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:18 -05:00
Marek Olšák
ac622b8536
vbo: rename ES vertex functions to match GL dispatch names
...
vbo_init_tmp.h will be autogenerated.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:16 -05:00
Marek Olšák
62eba623b5
vbo: rename vertex functions to match GL dispatch names
...
vbo_init_tmp.h will be autogenerated.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:13 -05:00
Marek Olšák
dd6b1ae110
mesa: add EXT suffix to VertexAttribI*EXT to match glapi name
...
I don't wanna do it the other way and potentially break the libGL - *_dri ABI.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:11 -05:00
Marek Olšák
77c2a7c2e4
glapi: replace dispatch.h inline functions with macros for faster compilation
...
A change in dispatch.h now takes 11.7% less user+sys time to compile.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:11 -05:00
Marek Olšák
1aa0b587cd
glapi: move apiexec API condition determination to common code
...
it will be used elsewhere
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:10 -05:00
Marek Olšák
6e4238f99a
glapi: rename gl_genexec.py to api_exec_init.py, api_exec.c to api_exec_init.c
...
this seems cleaner
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:09 -05:00
Marek Olšák
9cef21e33f
mesa: rename dlist functions to match dispatch function names
...
_mesa_initialize_save_table will be autogenerated.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:08 -05:00
Marek Olšák
12b1feb03e
mesa: don't set CallList* redundantly in _mesa_initialize_save_table
...
It's set by _mesa_install_save_vtxfmt.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 12:00:07 -05:00
Marek Olšák
b8ad4fd59d
glapi: rename exec="dynamic" to exec "vtxfmt" to make it self-explanatory
...
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 11:59:58 -05:00
Marek Olšák
8fa0332965
mesa: move the ES2 check from vbo_init_tmp.h to install_vtxfmt
...
It's where other API checks are done.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 11:59:57 -05:00
Marek Olšák
0f4891d77d
mesa: inline _vbo_install_exec_vtxfmt
...
also remove unused vbo_initialize_exec_dispatch
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 11:59:57 -05:00
Marek Olšák
43a9f6a938
mesa: move _mesa_initialize_vbo_vtxfmt calls to a common place and inline
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 11:59:56 -05:00
Marek Olšák
e7c543c60f
mesa: inline _mesa_install_dlist_vtxfmt
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 11:59:56 -05:00
Marek Olšák
31baf7bc4d
mesa: inline _mesa_install_eval_vtxfmt
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 11:59:55 -05:00
Marek Olšák
086c03e839
mesa: inline _mesa_install_arrayelt_vtxfmt
...
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 11:59:54 -05:00
Marek Olšák
d07b0d7dd7
mesa: inline vbo_initialize_save_dispatch and rename the functions
...
_mesa_initialize_save_table will be autogenerated.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com >
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14000 >
2021-12-14 11:59:52 -05:00