summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/vc5/vc5_resource.c
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-12-28 13:01:37 -0800
committerEric Anholt <[email protected]>2018-01-03 14:25:23 -0800
commit39811a2894743bf7e2f9818a0a1d14b6566116ee (patch)
tree2aba5c8cd2d972ba925a95e92190bc0d38b23206 /src/gallium/drivers/vc5/vc5_resource.c
parentd3e8a4b96c80955e832981534b1f4c3856b6fdb4 (diff)
broadcom/vc5: Introduce enums for internal depth/type, with V3D prefixes.
Diffstat (limited to 'src/gallium/drivers/vc5/vc5_resource.c')
-rw-r--r--src/gallium/drivers/vc5/vc5_resource.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/vc5/vc5_resource.c b/src/gallium/drivers/vc5/vc5_resource.c
index dc768379ca4..ddf4d5d377a 100644
--- a/src/gallium/drivers/vc5/vc5_resource.c
+++ b/src/gallium/drivers/vc5/vc5_resource.c
@@ -443,13 +443,13 @@ vc5_resource_setup(struct pipe_screen *pscreen,
&internal_type,
&internal_bpp);
switch (internal_bpp) {
- case INTERNAL_BPP_32:
+ case V3D_INTERNAL_BPP_32:
rsc->cpp = 4;
break;
- case INTERNAL_BPP_64:
+ case V3D_INTERNAL_BPP_64:
rsc->cpp = 8;
break;
- case INTERNAL_BPP_128:
+ case V3D_INTERNAL_BPP_128:
rsc->cpp = 16;
break;
}
@@ -667,14 +667,14 @@ vc5_create_surface(struct pipe_context *pctx,
if (util_format_is_depth_or_stencil(psurf->format)) {
switch (psurf->format) {
case PIPE_FORMAT_Z16_UNORM:
- surface->internal_type = INTERNAL_TYPE_DEPTH_16;
+ surface->internal_type = V3D_INTERNAL_TYPE_DEPTH_16;
break;
case PIPE_FORMAT_Z32_FLOAT:
case PIPE_FORMAT_Z32_FLOAT_S8X24_UINT:
- surface->internal_type = INTERNAL_TYPE_DEPTH_32F;
+ surface->internal_type = V3D_INTERNAL_TYPE_DEPTH_32F;
break;
default:
- surface->internal_type = INTERNAL_TYPE_DEPTH_24;
+ surface->internal_type = V3D_INTERNAL_TYPE_DEPTH_24;
}
} else {
uint32_t bpp, type;