static struct svga_shader_result *search_fs_key( struct svga_fragment_shader *fs, const struct svga_fs_compile_key *key ) { struct svga_shader_result *result = fs->base.results; assert(key); for ( ; result; result = result->next) { if (compare_fs_keys( key, &result->key.fkey ) == 0) return result; } return NULL; }
/** Search for a fragment shader variant */ static struct svga_shader_variant * search_fs_key(const struct svga_fragment_shader *fs, const struct svga_fs_compile_key *key) { struct svga_shader_variant *variant = fs->base.variants; assert(key); for ( ; variant; variant = variant->next) { if (compare_fs_keys( key, &variant->key.fkey ) == 0) return variant; } return NULL; }