v3d: force alpha to 1 when rendering RGBX formats
This adds an enum to the load tile buffer that forces the alpha channel to be set to 1. This will be required later to load RGBX formats. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7816>
This commit is contained in:
parent
b243ccb060
commit
01aafb2859
|
@ -473,6 +473,7 @@
|
|||
|
||||
<field name="R/B swap" size="1" start="20" type="bool"/>
|
||||
<field name="Channel Reverse" size="1" start="19" type="bool"/>
|
||||
<field name="Force alpha 1" size="1" start="18" type="bool"/>
|
||||
|
||||
<field name="Input Image Format" size="6" start="12" type="Output Image Format"/>
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ load_general(struct v3d_cl *cl, struct pipe_surface *psurf, int buffer,
|
|||
else
|
||||
load.input_image_format = surf->format;
|
||||
load.r_b_swap = surf->swap_rb;
|
||||
|
||||
load.force_alpha_1 = util_format_has_alpha1(psurf->format);
|
||||
if (surf->tiling == VC5_TILING_UIF_NO_XOR ||
|
||||
surf->tiling == VC5_TILING_UIF_XOR) {
|
||||
load.height_in_ub_or_stride =
|
||||
|
|
Loading…
Reference in New Issue