mesa/st: move rendermode to direct call
Acked-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14100>
This commit is contained in:
parent
cdc480585c
commit
cc4964847b
|
@ -656,8 +656,6 @@ struct dd_function_table {
|
|||
void (*Enable)(struct gl_context *ctx, GLenum cap, GLboolean state);
|
||||
/* Specifies the current buffer for reading */
|
||||
void (*ReadBuffer)( struct gl_context *ctx, GLenum buffer );
|
||||
/** Set rasterization mode */
|
||||
void (*RenderMode)(struct gl_context *ctx, GLenum mode );
|
||||
/** Set texture parameter (callee gets param value from the texObj) */
|
||||
void (*TexParameter)(struct gl_context *ctx,
|
||||
struct gl_texture_object *texObj, GLenum pname);
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
#include "macros.h"
|
||||
#include "mtypes.h"
|
||||
|
||||
#include "state_tracker/st_cb_feedback.h"
|
||||
|
||||
#define FB_3D 0x01
|
||||
#define FB_4D 0x02
|
||||
|
@ -477,8 +478,7 @@ _mesa_RenderMode( GLenum mode )
|
|||
}
|
||||
|
||||
ctx->RenderMode = mode;
|
||||
if (ctx->Driver.RenderMode)
|
||||
ctx->Driver.RenderMode( ctx, mode );
|
||||
st_RenderMode( ctx, mode );
|
||||
|
||||
return result;
|
||||
}
|
||||
|
|
|
@ -274,7 +274,7 @@ draw_glselect_stage(struct gl_context *ctx, struct draw_context *draw)
|
|||
}
|
||||
|
||||
|
||||
static void
|
||||
void
|
||||
st_RenderMode(struct gl_context *ctx, GLenum newMode )
|
||||
{
|
||||
struct st_context *st = st_context(ctx);
|
||||
|
@ -311,10 +311,3 @@ st_RenderMode(struct gl_context *ctx, GLenum newMode )
|
|||
st->dirty |= ST_NEW_VERTEX_PROGRAM(st, st_program(vp));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
void st_init_feedback_functions(struct dd_function_table *functions)
|
||||
{
|
||||
functions->RenderMode = st_RenderMode;
|
||||
}
|
||||
|
|
|
@ -29,11 +29,7 @@
|
|||
#ifndef ST_CB_FEEDBACK_H
|
||||
#define ST_CB_FEEDBACK_H
|
||||
|
||||
|
||||
struct dd_function_table;
|
||||
|
||||
extern void
|
||||
st_init_feedback_functions(struct dd_function_table *functions);
|
||||
|
||||
void
|
||||
st_RenderMode(struct gl_context *ctx, GLenum newMode );
|
||||
|
||||
#endif /* ST_CB_FEEDBACK_H */
|
||||
|
|
|
@ -950,7 +950,6 @@ st_init_driver_functions(struct pipe_screen *screen,
|
|||
st_init_eglimage_functions(functions, has_egl_image_validate);
|
||||
|
||||
st_init_fbo_functions(functions);
|
||||
st_init_feedback_functions(functions);
|
||||
st_init_msaa_functions(functions);
|
||||
st_init_perfmon_functions(functions);
|
||||
st_init_perfquery_functions(functions);
|
||||
|
|
Loading…
Reference in New Issue