summaryrefslogtreecommitdiffstats
path: root/src/mesa/state_tracker/st_context.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mesa/state_tracker/st_context.c')
-rw-r--r--src/mesa/state_tracker/st_context.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/mesa/state_tracker/st_context.c b/src/mesa/state_tracker/st_context.c
index 45451531df9..68b6ddbb855 100644
--- a/src/mesa/state_tracker/st_context.c
+++ b/src/mesa/state_tracker/st_context.c
@@ -78,6 +78,7 @@
#include "st_shader_cache.h"
#include "st_vdpau.h"
#include "st_texture.h"
+#include "st_util.h"
#include "pipe/p_context.h"
#include "util/u_cpu_detect.h"
#include "util/u_inlines.h"
@@ -132,7 +133,7 @@ st_query_memory_info(struct gl_context *ctx, struct gl_memory_info *out)
}
-uint64_t
+static uint64_t
st_get_active_states(struct gl_context *ctx)
{
struct st_vertex_program *vp =
@@ -184,6 +185,14 @@ st_invalidate_buffers(struct st_context *st)
}
+static inline bool
+st_vp_uses_current_values(const struct gl_context *ctx)
+{
+ const uint64_t inputs = ctx->VertexProgram._Current->info.inputs_read;
+ return _mesa_draw_current_bits(ctx) & inputs;
+}
+
+
/**
* Called via ctx->Driver.UpdateState()
*/