aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_jit.h
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-07-19 15:04:55 +1000
committerDave Airlie <[email protected]>2019-08-27 12:29:31 +1000
commita1e8fcef47545db29950a6b2baf400dd0c6085a5 (patch)
treedb03606bea12db257c2bf2a4be152a71a9b111ad /src/gallium/drivers/llvmpipe/lp_jit.h
parente8a445d8b53e0c7c692325215404d413da1d9e30 (diff)
gallivm: move first/last level jit texture members.
This lets us create an image structure with the same basic types as the texture one. Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_jit.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_jit.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_jit.h b/src/gallium/drivers/llvmpipe/lp_jit.h
index 6dc3147df2a..7868cf4eefa 100644
--- a/src/gallium/drivers/llvmpipe/lp_jit.h
+++ b/src/gallium/drivers/llvmpipe/lp_jit.h
@@ -53,11 +53,11 @@ struct lp_jit_texture
uint32_t width; /* same as number of elements */
uint32_t height;
uint32_t depth; /* doubles as array size */
- uint32_t first_level;
- uint32_t last_level;
const void *base;
uint32_t row_stride[LP_MAX_TEXTURE_LEVELS];
uint32_t img_stride[LP_MAX_TEXTURE_LEVELS];
+ uint32_t first_level;
+ uint32_t last_level;
uint32_t mip_offsets[LP_MAX_TEXTURE_LEVELS];
};
@@ -82,11 +82,11 @@ enum {
LP_JIT_TEXTURE_WIDTH = 0,
LP_JIT_TEXTURE_HEIGHT,
LP_JIT_TEXTURE_DEPTH,
- LP_JIT_TEXTURE_FIRST_LEVEL,
- LP_JIT_TEXTURE_LAST_LEVEL,
LP_JIT_TEXTURE_BASE,
LP_JIT_TEXTURE_ROW_STRIDE,
LP_JIT_TEXTURE_IMG_STRIDE,
+ LP_JIT_TEXTURE_FIRST_LEVEL,
+ LP_JIT_TEXTURE_LAST_LEVEL,
LP_JIT_TEXTURE_MIP_OFFSETS,
LP_JIT_TEXTURE_NUM_FIELDS /* number of fields above */
};