panfrost: Replace unkown renderer state fields by their real names
Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com> Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:
parent
7486b5d91e
commit
a194dcc827
|
@ -532,13 +532,13 @@ panfrost_prepare_fs_state(struct panfrost_context *ctx,
|
||||||
state->multisample_misc.depth_write_mask = zsa->base.depth.writemask;
|
state->multisample_misc.depth_write_mask = zsa->base.depth.writemask;
|
||||||
state->multisample_misc.fixed_function_near_discard = rast->depth_clip_near;
|
state->multisample_misc.fixed_function_near_discard = rast->depth_clip_near;
|
||||||
state->multisample_misc.fixed_function_far_discard = rast->depth_clip_far;
|
state->multisample_misc.fixed_function_far_discard = rast->depth_clip_far;
|
||||||
state->multisample_misc.unknown_2 = true;
|
state->multisample_misc.shader_depth_range_fixed = true;
|
||||||
|
|
||||||
state->stencil_mask_misc.stencil_mask_front = zsa->stencil_mask_front;
|
state->stencil_mask_misc.stencil_mask_front = zsa->stencil_mask_front;
|
||||||
state->stencil_mask_misc.stencil_mask_back = zsa->stencil_mask_back;
|
state->stencil_mask_misc.stencil_mask_back = zsa->stencil_mask_back;
|
||||||
state->stencil_mask_misc.stencil_enable = zsa->base.stencil[0].enabled;
|
state->stencil_mask_misc.stencil_enable = zsa->base.stencil[0].enabled;
|
||||||
state->stencil_mask_misc.alpha_to_coverage = alpha_to_coverage;
|
state->stencil_mask_misc.alpha_to_coverage = alpha_to_coverage;
|
||||||
state->stencil_mask_misc.unknown_1 = 0x7;
|
state->stencil_mask_misc.alpha_test_compare_function = MALI_FUNC_ALWAYS;
|
||||||
state->stencil_mask_misc.depth_range_1 = rast->offset_tri;
|
state->stencil_mask_misc.depth_range_1 = rast->offset_tri;
|
||||||
state->stencil_mask_misc.depth_range_2 = rast->offset_tri;
|
state->stencil_mask_misc.depth_range_2 = rast->offset_tri;
|
||||||
state->stencil_mask_misc.single_sampled_lines = !rast->multisample;
|
state->stencil_mask_misc.single_sampled_lines = !rast->multisample;
|
||||||
|
|
|
@ -737,8 +737,8 @@
|
||||||
<field name="Multisample enable" size="1" start="16" type="bool"/>
|
<field name="Multisample enable" size="1" start="16" type="bool"/>
|
||||||
<field name="Multisample late coverage" size="1" start="17" type="bool"/>
|
<field name="Multisample late coverage" size="1" start="17" type="bool"/>
|
||||||
<field name="Evaluate per-sample" size="1" start="18" type="bool"/>
|
<field name="Evaluate per-sample" size="1" start="18" type="bool"/>
|
||||||
<field name="Unknown 1" size="1" start="19" type="bool"/>
|
<field name="Fixed-function depth range fixed" size="1" start="19" type="bool"/>
|
||||||
<field name="Unknown 2" size="1" start="20" type="bool"/>
|
<field name="Shader depth range fixed" size="1" start="20" type="bool"/>
|
||||||
<field name="SFBD Load destination" size="1" start="21" type="bool"/>
|
<field name="SFBD Load destination" size="1" start="21" type="bool"/>
|
||||||
<field name="SFBD Blend shader" size="1" start="22" type="bool"/>
|
<field name="SFBD Blend shader" size="1" start="22" type="bool"/>
|
||||||
<field name="SFBD Blend shader discard" size="1" start="23" type="bool"/>
|
<field name="SFBD Blend shader discard" size="1" start="23" type="bool"/>
|
||||||
|
@ -758,10 +758,10 @@
|
||||||
<field name="Alpha-to-coverage Invert" size="1" start="18" type="bool"/>
|
<field name="Alpha-to-coverage Invert" size="1" start="18" type="bool"/>
|
||||||
<field name="Alpha to one" size="1" start="19" type="bool"/>
|
<field name="Alpha to one" size="1" start="19" type="bool"/>
|
||||||
<field name="SFBD Write enable" size="1" start="20" type="bool"/>
|
<field name="SFBD Write enable" size="1" start="20" type="bool"/>
|
||||||
<field name="Unknown 1" size="3" start="21" type="uint"/>
|
<field name="Alpha test compare function" size="3" start="21" type="Func"/>
|
||||||
<field name="SFBD sRGB" size="1" start="24" type="bool"/>
|
<field name="SFBD sRGB" size="1" start="24" type="bool"/>
|
||||||
<field name="SFBD Dither disable" size="1" start="25" type="bool"/>
|
<field name="SFBD Dither disable" size="1" start="25" type="bool"/>
|
||||||
<field name="Unknown 2" size="1" start="26" type="bool"/>
|
<field name="Force seamless cubemaps" size="1" start="26" type="bool"/>
|
||||||
<field name="Depth Range 1" size="1" start="28" type="bool"/>
|
<field name="Depth Range 1" size="1" start="28" type="bool"/>
|
||||||
<field name="Depth Range 2" size="1" start="29" type="bool"/>
|
<field name="Depth Range 2" size="1" start="29" type="bool"/>
|
||||||
<field name="Single-sampled lines" size="1" start="30" type="bool"/>
|
<field name="Single-sampled lines" size="1" start="30" type="bool"/>
|
||||||
|
|
|
@ -250,7 +250,7 @@ panfrost_load_midg(
|
||||||
cfg.stencil_mask_misc.stencil_enable = (loc == FRAG_RESULT_STENCIL);
|
cfg.stencil_mask_misc.stencil_enable = (loc == FRAG_RESULT_STENCIL);
|
||||||
cfg.stencil_mask_misc.stencil_mask_front = 0xFF;
|
cfg.stencil_mask_misc.stencil_mask_front = 0xFF;
|
||||||
cfg.stencil_mask_misc.stencil_mask_back = 0xFF;
|
cfg.stencil_mask_misc.stencil_mask_back = 0xFF;
|
||||||
cfg.stencil_mask_misc.unknown_1 = 0x7;
|
cfg.stencil_mask_misc.alpha_test_compare_function = MALI_FUNC_ALWAYS;
|
||||||
|
|
||||||
cfg.stencil_front.compare_function = MALI_FUNC_ALWAYS;
|
cfg.stencil_front.compare_function = MALI_FUNC_ALWAYS;
|
||||||
cfg.stencil_front.stencil_fail = MALI_STENCIL_OP_REPLACE;
|
cfg.stencil_front.stencil_fail = MALI_STENCIL_OP_REPLACE;
|
||||||
|
|
Loading…
Reference in New Issue