mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
i965: Remove brwIsProgramNative
Originally I just fixed some unused parameter warnings in this
function. However, Ken pointed out:
"You could instead remove this driver hook. If the dd pointer is
NULL, arbprogram.c will return true. I think I'd prefer that."
Way, way back in time, I think _mesa_GetProgramivARB had the opposite
behavior. Given that it works the way it now works, I also prefer
removing the driver hook.
Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
66d950464c
commit
4939c2eced
1 changed files with 0 additions and 9 deletions
|
|
@ -119,14 +119,6 @@ static void brwDeleteProgram( struct gl_context *ctx,
|
|||
}
|
||||
|
||||
|
||||
static GLboolean
|
||||
brwIsProgramNative(struct gl_context *ctx,
|
||||
GLenum target,
|
||||
struct gl_program *prog)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
static GLboolean
|
||||
brwProgramStringNotify(struct gl_context *ctx,
|
||||
GLenum target,
|
||||
|
|
@ -233,7 +225,6 @@ void brwInitFragProgFuncs( struct dd_function_table *functions )
|
|||
|
||||
functions->NewProgram = brwNewProgram;
|
||||
functions->DeleteProgram = brwDeleteProgram;
|
||||
functions->IsProgramNative = brwIsProgramNative;
|
||||
functions->ProgramStringNotify = brwProgramStringNotify;
|
||||
|
||||
functions->NewShader = brw_new_shader;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue