hk,asahi: pass through soft fault to VBO lower

Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30633>
This commit is contained in:
Alyssa Rosenzweig
2024-07-31 21:27:35 -04:00
parent dc3288dcb1
commit 3d18f14328
2 changed files with 4 additions and 7 deletions
+1 -1
View File
@@ -2574,7 +2574,7 @@ hk_flush_dynamic_state(struct hk_cmd_buffer *cmd, struct hk_cs *cs,
? AGX_ROBUSTNESS_D3D
: AGX_ROBUSTNESS_GL,
.prolog.robustness.soft_fault = false /*TODO*/,
.prolog.robustness.soft_fault = agx_has_soft_fault(&dev->dev),
};
if (!key.prolog.hw) {
+3 -6
View File
@@ -2213,17 +2213,14 @@ agx_update_vs(struct agx_context *ctx, unsigned index_size_B)
agx_update_shader(ctx, &ctx->vs, PIPE_SHADER_VERTEX,
(union asahi_shader_key *)&key);
struct agx_device *dev = agx_device(ctx->base.screen);
struct agx_fast_link_key link_key = {
.prolog.vs.hw = key.hw,
.prolog.vs.sw_index_size_B = key.hw ? 0 : index_size_B,
/* TODO: We could optimize this */
.prolog.vs.robustness =
{
.level = AGX_ROBUSTNESS_GL,
.soft_fault = false,
},
.prolog.vs.robustness.level = AGX_ROBUSTNESS_GL,
.prolog.vs.robustness.soft_fault = agx_has_soft_fault(dev),
.main = ctx->vs,
};