mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
mesa/st: drop new tess state driver bit
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14261>
This commit is contained in:
parent
562f01fbc7
commit
f35d22b2ee
3 changed files with 4 additions and 10 deletions
|
|
@ -4798,12 +4798,6 @@ struct gl_driver_flags
|
|||
*/
|
||||
uint64_t NewImageUnits;
|
||||
|
||||
/**
|
||||
* gl_context::TessCtrlProgram::patch_default_*
|
||||
* gl_context::TessCtrlProgram::patch_vertices
|
||||
*/
|
||||
uint64_t NewTessState;
|
||||
|
||||
/**
|
||||
* gl_context::Scissor::WindowRects
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -68,6 +68,7 @@
|
|||
#include "api_exec_decl.h"
|
||||
|
||||
#include "state_tracker/st_cb_program.h"
|
||||
#include "state_tracker/st_context.h"
|
||||
|
||||
#ifdef ENABLE_SHADER_CACHE
|
||||
#if CUSTOM_SHADER_REPLACEMENT
|
||||
|
|
@ -2768,7 +2769,7 @@ set_patch_vertices(struct gl_context *ctx, GLint value)
|
|||
{
|
||||
if (ctx->TessCtrlProgram.patch_vertices != value) {
|
||||
FLUSH_VERTICES(ctx, 0, GL_CURRENT_BIT);
|
||||
ctx->NewDriverState |= ctx->DriverFlags.NewTessState;
|
||||
ctx->NewDriverState |= ST_NEW_TESS_STATE;
|
||||
ctx->TessCtrlProgram.patch_vertices = value;
|
||||
}
|
||||
}
|
||||
|
|
@ -2824,13 +2825,13 @@ _mesa_PatchParameterfv(GLenum pname, const GLfloat *values)
|
|||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
memcpy(ctx->TessCtrlProgram.patch_default_outer_level, values,
|
||||
4 * sizeof(GLfloat));
|
||||
ctx->NewDriverState |= ctx->DriverFlags.NewTessState;
|
||||
ctx->NewDriverState |= ST_NEW_TESS_STATE;
|
||||
return;
|
||||
case GL_PATCH_DEFAULT_INNER_LEVEL:
|
||||
FLUSH_VERTICES(ctx, 0, 0);
|
||||
memcpy(ctx->TessCtrlProgram.patch_default_inner_level, values,
|
||||
2 * sizeof(GLfloat));
|
||||
ctx->NewDriverState |= ctx->DriverFlags.NewTessState;
|
||||
ctx->NewDriverState |= ST_NEW_TESS_STATE;
|
||||
return;
|
||||
default:
|
||||
_mesa_error(ctx, GL_INVALID_ENUM, "glPatchParameterfv");
|
||||
|
|
|
|||
|
|
@ -448,7 +448,6 @@ st_init_driver_flags(struct st_context *st)
|
|||
struct gl_driver_flags *f = &st->ctx->DriverFlags;
|
||||
|
||||
f->NewUniformBuffer = ST_NEW_UNIFORM_BUFFER;
|
||||
f->NewTessState = ST_NEW_TESS_STATE;
|
||||
|
||||
/* Shader resources */
|
||||
f->NewTextureBuffer = ST_NEW_SAMPLER_VIEWS;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue