gallium: add PIPE_CAP_MAX_TEXTURE_UPLOAD_MEMORY_BUDGET
[mesa.git] / src / gallium / drivers / nouveau / nv50 / nv50_stateobj_tex.h
1
2 #ifndef __NV50_STATEOBJ_TEX_H__
3 #define __NV50_STATEOBJ_TEX_H__
4
5 #include "pipe/p_state.h"
6
7 struct nv50_tsc_entry {
8 int id;
9 uint32_t tsc[8];
10 bool seamless_cube_map;
11 };
12
13 static inline struct nv50_tsc_entry *
14 nv50_tsc_entry(void *hwcso)
15 {
16 return (struct nv50_tsc_entry *)hwcso;
17 }
18
19 struct nv50_tic_entry {
20 struct pipe_sampler_view pipe;
21 int id;
22 uint32_t tic[8];
23 uint32_t bindless;
24 };
25
26 static inline struct nv50_tic_entry *
27 nv50_tic_entry(struct pipe_sampler_view *view)
28 {
29 return (struct nv50_tic_entry *)view;
30 }
31
32 extern void *
33 nv50_sampler_state_create(struct pipe_context *,
34 const struct pipe_sampler_state *);
35
36 #endif /* __NV50_STATEOBJ_TEX_H__ */