gallium: remove pipe_texture::compressed field
authorBrian Paul <brianp@vmware.com>
Fri, 10 Apr 2009 14:05:10 +0000 (08:05 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 10 Apr 2009 14:05:10 +0000 (08:05 -0600)
The format field encodes compressed vs. uncompressed already.  We can easily
check if a texture is compressed with pf_is_compressed(texture->format).

src/gallium/drivers/nv04/nv04_transfer.c
src/gallium/drivers/nv10/nv10_transfer.c
src/gallium/drivers/nv20/nv20_transfer.c
src/gallium/drivers/nv30/nv30_transfer.c
src/gallium/drivers/nv40/nv40_transfer.c
src/gallium/include/pipe/p_state.h
src/mesa/state_tracker/st_texture.c

index e925a44e2980192ce45d3b577f2e2c843603bbda..854b855d64a12aad0ba954d03a638df3fcadc4d2 100644 (file)
@@ -43,7 +43,6 @@ nv04_compatible_transfer_tex(struct pipe_texture *pt, unsigned level,
        template->nblocksx[0] = pt->nblocksx[level];
        template->nblocksy[0] = pt->nblocksx[level];
        template->last_level = 0;
-       template->compressed = pt->compressed;
        template->nr_samples = pt->nr_samples;
 
        template->tex_usage = PIPE_TEXTURE_USAGE_DYNAMIC |
index 5a99225409c3acc78108e525c5d7e197fdf751a0..c06b8d34c72c814efbf5177cf1072692928f633b 100644 (file)
@@ -43,7 +43,6 @@ nv10_compatible_transfer_tex(struct pipe_texture *pt, unsigned level,
        template->nblocksx[0] = pt->nblocksx[level];
        template->nblocksy[0] = pt->nblocksx[level];
        template->last_level = 0;
-       template->compressed = pt->compressed;
        template->nr_samples = pt->nr_samples;
 
        template->tex_usage = PIPE_TEXTURE_USAGE_DYNAMIC |
index e5255296aaed2ab0e227af2a61505d7f8829db44..5018995596c37af300825e7c57ec996002509cdc 100644 (file)
@@ -43,7 +43,6 @@ nv20_compatible_transfer_tex(struct pipe_texture *pt, unsigned level,
        template->nblocksx[0] = pt->nblocksx[level];
        template->nblocksy[0] = pt->nblocksx[level];
        template->last_level = 0;
-       template->compressed = pt->compressed;
        template->nr_samples = pt->nr_samples;
 
        template->tex_usage = PIPE_TEXTURE_USAGE_DYNAMIC |
index 8b915b35bd4c01ff2b7e8477728db5c4480bd167..23675718781310c0cc1ee28cc183dd7d1f703154 100644 (file)
@@ -43,7 +43,6 @@ nv30_compatible_transfer_tex(struct pipe_texture *pt, unsigned level,
        template->nblocksx[0] = pt->nblocksx[level];
        template->nblocksy[0] = pt->nblocksx[level];
        template->last_level = 0;
-       template->compressed = pt->compressed;
        template->nr_samples = pt->nr_samples;
 
        template->tex_usage = PIPE_TEXTURE_USAGE_DYNAMIC |
index 728e8b56745e117e8038572265f400ce1d462cbc..ce45055fe82e3c1cb453e71c71f7de0bde347e15 100644 (file)
@@ -43,7 +43,6 @@ nv40_compatible_transfer_tex(struct pipe_texture *pt, unsigned level,
        template->nblocksx[0] = pt->nblocksx[level];
        template->nblocksy[0] = pt->nblocksx[level];
        template->last_level = 0;
-       template->compressed = pt->compressed;
        template->nr_samples = pt->nr_samples;
 
        template->tex_usage = PIPE_TEXTURE_USAGE_DYNAMIC |
index 705ae68ec659b318163e667f0b34f74df55e6535..4b590bdc906291b71adda5bfb009df00e532325e 100644 (file)
@@ -336,7 +336,6 @@ struct pipe_texture
    unsigned nblocksy[PIPE_MAX_TEXTURE_LEVELS]; /**< allocated height in blocks */
 
    unsigned last_level:8;    /**< Index of last mipmap level present/defined */
-   unsigned compressed:1;
 
    unsigned nr_samples:8;    /**< for multisampled surfaces, nr of samples */
 
index fad513a5563e6d99e5beeaaef01f128e950feca4..19eb7e2f69c6e31623c0b9533989ea8072039af3 100644 (file)
@@ -100,7 +100,6 @@ st_texture_create(struct st_context *st,
    pt.width[0] = width0;
    pt.height[0] = height0;
    pt.depth[0] = depth0;
-   pt.compressed = pf_is_compressed(format);
    pf_get_block(format, &pt.block);
    pt.tex_usage = usage;