11f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller
21f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller#ifndef __NV50_STATEOBJ_TEX_H__
31f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller#define __NV50_STATEOBJ_TEX_H__
41f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller
51f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller#include "pipe/p_state.h"
61f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller
71f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumillerstruct nv50_tsc_entry {
81f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller   int id;
91f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller   uint32_t tsc[8];
101f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller};
111f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller
121f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumillerstatic INLINE struct nv50_tsc_entry *
131f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumillernv50_tsc_entry(void *hwcso)
141f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller{
151f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller   return (struct nv50_tsc_entry *)hwcso;
161f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller}
171f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller
181f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumillerstruct nv50_tic_entry {
191f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller   struct pipe_sampler_view pipe;
201f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller   int id;
211f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller   uint32_t tic[8];
221f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller};
231f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller
241f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumillerstatic INLINE struct nv50_tic_entry *
251f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumillernv50_tic_entry(struct pipe_sampler_view *view)
261f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller{
271f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller   return (struct nv50_tic_entry *)view;
281f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller}
291f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller
301f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumillerextern void *
311f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumillernv50_sampler_state_create(struct pipe_context *,
321f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller                          const struct pipe_sampler_state *);
331f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller
341f5d6fc59bd899e211c70026eb74cd2219858008Christoph Bumiller#endif /* __NV50_STATEOBJ_TEX_H__ */
35