OSDN Git Service

tgsi, softpipe: Constify tgsi_sampler in query_lod vfunc
authorKrzesimir Nowak <krzesimir@kinvolk.io>
Fri, 11 Sep 2015 18:07:38 +0000 (20:07 +0200)
committerBrian Paul <brianp@vmware.com>
Fri, 11 Sep 2015 21:36:38 +0000 (15:36 -0600)
commitba72e6cfb8248ae0d8b3cf5ebf9add7c49f45743
treec138182723b8aaaab2eb58184ba68551f2ae992d
parentea0fecd1a3f46439c602e04870b34e6f27ad5b2e
tgsi, softpipe: Constify tgsi_sampler in query_lod vfunc

A followup from previous commit - since all functions called by
query_lod take pointers to const sp_sampler_view and const sp_sampler,
which are taken from tgsi_sampler subclass, we can the tgsi_sampler as
const itself now.

Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/tgsi/tgsi_exec.h
src/gallium/drivers/softpipe/sp_tex_sample.c