llvmpipe: Respect pipe_sampler_view::format.
[mesa.git] / src / gallium / drivers / llvmpipe / lp_state_fs.c
index c57b4a4258e595533ff5423d6d78beb0cc1c865d..e82364d4b6dfe67c15d50bc97465d0ab49876458 100644 (file)
@@ -1130,7 +1130,7 @@ make_variant_key(struct llvmpipe_context *lp,
 
    for(i = 0; i < PIPE_MAX_SAMPLERS; ++i)
       if(shader->info.file_mask[TGSI_FILE_SAMPLER] & (1 << i))
-         lp_sampler_static_state(&key->sampler[i], lp->fragment_sampler_views[i]->texture, lp->sampler[i]);
+         lp_sampler_static_state(&key->sampler[i], lp->fragment_sampler_views[i], lp->sampler[i]);
 }