anv: Explicitly cast between different enums
Fixes warnings like warning: implicit conversion from enumeration type 'enum isl_format' to different enumeration type 'enum GEN10_SURFACE_FORMAT' [-Wenum-conversion] .SourceElementFormat = ISL_FORMAT_R32_UINT, ^~~~~~~~~~~~~~~~~~~ Reviewed-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
@@ -150,7 +150,7 @@ genX(cmd_buffer_so_memcpy)(struct anv_cmd_buffer *cmd_buffer,
|
||||
&(struct GENX(VERTEX_ELEMENT_STATE)) {
|
||||
.VertexBufferIndex = 32,
|
||||
.Valid = true,
|
||||
.SourceElementFormat = format,
|
||||
.SourceElementFormat = (enum GENX(SURFACE_FORMAT)) format,
|
||||
.SourceElementOffset = 0,
|
||||
.Component0Control = (bs >= 4) ? VFCOMP_STORE_SRC : VFCOMP_STORE_0,
|
||||
.Component1Control = (bs >= 8) ? VFCOMP_STORE_SRC : VFCOMP_STORE_0,
|
||||
|
Reference in New Issue
Block a user