~ubuntu-branches/ubuntu/precise/mesa/precise-updates

« back to all changes in this revision

Viewing changes to src/mesa/drivers/dri/intel/intel_tex_obj.h

  • Committer: Package Import Robot
  • Author(s): Robert Hooker
  • Date: 2012-02-02 12:05:48 UTC
  • mfrom: (1.7.1) (3.3.27 sid)
  • Revision ID: package-import@ubuntu.com-20120202120548-nvkma85jq0h4coix
Tags: 8.0~rc2-0ubuntu4
Drop drisearchdir handling, it is no longer needed with multiarch
and dri-alternates being removed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#ifndef _INTEL_TEX_OBJ_H
29
29
#define _INTEL_TEX_OBJ_H
30
30
 
 
31
#include "swrast/s_context.h"
 
32
 
 
33
 
31
34
struct intel_texture_object
32
35
{
33
 
   struct gl_texture_object base;       /* The "parent" object */
 
36
   struct gl_texture_object base;
34
37
 
35
38
   /* This is a mirror of base._MaxLevel, updated at validate time,
36
39
    * except that we don't bother with the non-base levels for
48
51
   struct intel_mipmap_tree *mt;
49
52
};
50
53
 
 
54
 
 
55
/**
 
56
 * intel_texture_image is a subclass of swrast_texture_image because we
 
57
 * sometimes fall back to using the swrast module for software rendering.
 
58
 */
51
59
struct intel_texture_image
52
60
{
53
 
   struct gl_texture_image base;
54
 
 
55
 
   /* These aren't stored in gl_texture_image 
56
 
    */
57
 
   GLuint level;
58
 
   GLuint face;
 
61
   struct swrast_texture_image base;
59
62
 
60
63
   /* If intelImage->mt != NULL, image data is stored here.
61
 
    * Else if intelImage->base.Data != NULL, image is stored there.
 
64
    * Else if intelImage->base.Buffer != NULL, image is stored there.
62
65
    * Else there is no image data.
63
66
    */
64
67
   struct intel_mipmap_tree *mt;
65
 
   GLboolean used_as_render_target;
66
 
 
67
 
   /**
68
 
    * \name Renderbuffers for faking packed depth/stencil
69
 
    *
70
 
    * These renderbuffers are non-null only if the intel_context is using
71
 
    * separate stencil and this texture has a packed depth/stencil format. When
72
 
    * glFramebufferTexture is called on this image, the resultant renderbuffer
73
 
    * wrapper reuses these renderbuffers as its own.
74
 
    *
75
 
    * \see intel_wrap_texture
76
 
    * \see intel_tex_image_s8z24_create_renderbuffers
77
 
    * \see intel_tex_image_s8z24_scatter
78
 
    * \see intel_tex_image_s8z24_gather
79
 
    *
80
 
    * \{
81
 
    */
82
 
 
83
 
   /**
84
 
    * The depth buffer has format X8_Z24. The x8 bits are undefined unless
85
 
    * intel_tex_image_s8z24_gather has been immediately called. The depth buffer
86
 
    * resuses the image miptree's region and hiz_region as its own.
87
 
    */
88
 
   struct gl_renderbuffer *depth_rb;
89
 
 
90
 
   /**
91
 
    * The stencil buffer has format S8 and keeps its data in its own region.
92
 
    */
93
 
   struct gl_renderbuffer *stencil_rb;
94
 
 
95
 
   /** \} */
 
68
   bool used_as_render_target;
96
69
};
97
70
 
98
71
static INLINE struct intel_texture_object *