mesa/sso: rename Shader to the pointer _Shader
Basically a sed but shaderapi.c and get.c. get.c => GL_CURRENT_PROGAM always refer to the "old" UseProgram behavior shaderapi.c => the old api stil update the Shader object directly V2: formatting improvement V3 (idr): * Rebase fixes after a block of code was moved from ir_to_mesa.cpp to shaderapi.c. * Trivial reformatting. Reviewed-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:

committed by
Ian Romanick

parent
b2bddaf7a0
commit
c03477050a
@@ -219,7 +219,7 @@ static void st_bind_ubos(struct st_context *st,
|
||||
static void bind_vs_ubos(struct st_context *st)
|
||||
{
|
||||
struct gl_shader_program *prog =
|
||||
st->ctx->Shader.CurrentProgram[MESA_SHADER_VERTEX];
|
||||
st->ctx->_Shader->CurrentProgram[MESA_SHADER_VERTEX];
|
||||
|
||||
if (!prog)
|
||||
return;
|
||||
@@ -239,7 +239,7 @@ const struct st_tracked_state st_bind_vs_ubos = {
|
||||
static void bind_fs_ubos(struct st_context *st)
|
||||
{
|
||||
struct gl_shader_program *prog =
|
||||
st->ctx->Shader.CurrentProgram[MESA_SHADER_FRAGMENT];
|
||||
st->ctx->_Shader->CurrentProgram[MESA_SHADER_FRAGMENT];
|
||||
|
||||
if (!prog)
|
||||
return;
|
||||
@@ -259,7 +259,7 @@ const struct st_tracked_state st_bind_fs_ubos = {
|
||||
static void bind_gs_ubos(struct st_context *st)
|
||||
{
|
||||
struct gl_shader_program *prog =
|
||||
st->ctx->Shader.CurrentProgram[MESA_SHADER_GEOMETRY];
|
||||
st->ctx->_Shader->CurrentProgram[MESA_SHADER_GEOMETRY];
|
||||
|
||||
if (!prog)
|
||||
return;
|
||||
|
Reference in New Issue
Block a user