iris: Update the clear value in cso_z->packets

Enables emitting the packets all at once later on.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11454>
This commit is contained in:
Nanley Chery 2021-06-17 09:34:00 -07:00 committed by Marge Bot
parent f131e8917a
commit 78376a450b
1 changed files with 1 additions and 1 deletions

View File

@ -6276,7 +6276,7 @@ iris_upload_dirty_render_state(struct iris_context *ice,
clear_value = iris_resource_get_clear_color(zres, NULL, NULL);
}
uint32_t clear_params[GENX(3DSTATE_CLEAR_PARAMS_length)];
uint32_t *clear_params = cso_z->packets + cso_z_size / 4;
iris_pack_command(GENX(3DSTATE_CLEAR_PARAMS), clear_params, clear) {
clear.DepthClearValueValid = true;
clear.DepthClearValue = clear_value.f32[0];