summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nouveau/nv50/nv50_stateobj_tex.h
blob: 6bc451450b1f9a00b367f8561181357c373dde72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35

#ifndef __NV50_STATEOBJ_TEX_H__
#define __NV50_STATEOBJ_TEX_H__

#include "pipe/p_state.h"

struct nv50_tsc_entry {
   int id;
   uint32_t tsc[8];
   bool seamless_cube_map;
};

static inline struct nv50_tsc_entry *
nv50_tsc_entry(void *hwcso)
{
   return (struct nv50_tsc_entry *)hwcso;
}

struct nv50_tic_entry {
   struct pipe_sampler_view pipe;
   int id;
   uint32_t tic[8];
};

static inline struct nv50_tic_entry *
nv50_tic_entry(struct pipe_sampler_view *view)
{
   return (struct nv50_tic_entry *)view;
}

extern void *
nv50_sampler_state_create(struct pipe_context *,
                          const struct pipe_sampler_state *);

#endif /* __NV50_STATEOBJ_TEX_H__ */