Home | History | Annotate | Download | only in nv50
      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 };
     24 
     25 static inline struct nv50_tic_entry *
     26 nv50_tic_entry(struct pipe_sampler_view *view)
     27 {
     28    return (struct nv50_tic_entry *)view;
     29 }
     30 
     31 extern void *
     32 nv50_sampler_state_create(struct pipe_context *,
     33                           const struct pipe_sampler_state *);
     34 
     35 #endif /* __NV50_STATEOBJ_TEX_H__ */
     36