~mmach/netext73/mesa-ryzen

« back to all changes in this revision

Viewing changes to src/gallium/frontends/rusticl/mesa/pipe/resource.rs

  • Committer: mmach
  • Date: 2023-11-02 21:31:35 UTC
  • Revision ID: netbit73@gmail.com-20231102213135-18d4tzh7tj0uz752
2023-11-02 22:11:57

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
        self.as_ref().target() == pipe_texture_target::PIPE_BUFFER
67
67
    }
68
68
 
 
69
    pub fn is_linear(&self) -> bool {
 
70
        self.as_ref().bind & PIPE_BIND_LINEAR != 0
 
71
    }
 
72
 
 
73
    pub fn is_staging(&self) -> bool {
 
74
        self.as_ref().usage() & pipe_resource_usage::PIPE_USAGE_STAGING.0 != 0
 
75
    }
 
76
 
69
77
    pub fn pipe_image_view(
70
78
        &self,
71
79
        format: pipe_format,