[Mesa-dev] [PATCH 05/12] i965/fs: Remove struct brw_shader * parameter to fs_visitor constructor.

Eric Anholt eric at anholt.net
Mon Nov 26 10:45:50 PST 2012


Kenneth Graunke <kenneth at whitecape.org> writes:
> @@ -2185,7 +2185,8 @@ fs_visitor::fs_visitor(struct brw_wm_compile *c, struct gl_shader_program *prog,
>     this->intel = &brw->intel;
>     this->ctx = &intel->ctx;
>     this->mem_ctx = ralloc_context(NULL);
> -   this->shader = shader;
> +   this->shader = prog == NULL ? NULL :
> +      (struct brw_shader *) prog->_LinkedShaders[MESA_SHADER_FRAGMENT];

Could I get a proper if statement here?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20121126/4f049572/attachment.pgp>


More information about the mesa-dev mailing list