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 };
     11 
     12 static INLINE struct nv50_tsc_entry *
     13 nv50_tsc_entry(void *hwcso)
     14 {
     15    return (struct nv50_tsc_entry *)hwcso;
     16 }
     17 
     18 struct nv50_tic_entry {
     19    struct pipe_sampler_view pipe;
     20    int id;
     21    uint32_t tic[8];
     22 };
     23 
     24 static INLINE struct nv50_tic_entry *
     25 nv50_tic_entry(struct pipe_sampler_view *view)
     26 {
     27    return (struct nv50_tic_entry *)view;
     28 }
     29 
     30 extern void *
     31 nv50_sampler_state_create(struct pipe_context *,
     32                           const struct pipe_sampler_state *);
     33 
     34 #endif /* __NV50_STATEOBJ_TEX_H__ */
     35