"Fossies" - the Fresh Open Source Software Archive

Member "mesa-20.1.8/src/gallium/drivers/nouveau/nv50/nv50_stateobj_tex.h" (16 Sep 2020, 701 Bytes) of package /linux/misc/mesa-20.1.8.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "nv50_stateobj_tex.h" see the Fossies "Dox" file reference documentation.

    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__ */