mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
anv/cmd_buffer: Emit gen9 style SF state for CHV
The state for line width changes on Cherryview to use the GEN9 bits (for extra precision).
This commit is contained in:
parent
31508bd0ce
commit
89ec36f221
1 changed files with 23 additions and 1 deletions
|
|
@ -225,7 +225,7 @@ flush_pipeline_select_3d(struct anv_cmd_buffer *cmd_buffer)
|
|||
}
|
||||
|
||||
static void
|
||||
__emit_sf_state(struct anv_cmd_buffer *cmd_buffer)
|
||||
__emit_genx_sf_state(struct anv_cmd_buffer *cmd_buffer)
|
||||
{
|
||||
uint32_t sf_dw[GENX(3DSTATE_SF_length)];
|
||||
struct GENX(3DSTATE_SF) sf = {
|
||||
|
|
@ -237,6 +237,28 @@ __emit_sf_state(struct anv_cmd_buffer *cmd_buffer)
|
|||
anv_batch_emit_merge(&cmd_buffer->batch, sf_dw,
|
||||
cmd_buffer->state.pipeline->gen8.sf);
|
||||
}
|
||||
static void
|
||||
__emit_gen9_sf_state(struct anv_cmd_buffer *cmd_buffer)
|
||||
{
|
||||
uint32_t sf_dw[GENX(3DSTATE_SF_length)];
|
||||
struct GEN9_3DSTATE_SF sf = {
|
||||
GEN9_3DSTATE_SF_header,
|
||||
.LineWidth = cmd_buffer->state.dynamic.line_width,
|
||||
};
|
||||
GEN9_3DSTATE_SF_pack(NULL, sf_dw, &sf);
|
||||
/* FIXME: gen9.fs */
|
||||
anv_batch_emit_merge(&cmd_buffer->batch, sf_dw,
|
||||
cmd_buffer->state.pipeline->gen8.sf);
|
||||
}
|
||||
|
||||
static void
|
||||
__emit_sf_state(struct anv_cmd_buffer *cmd_buffer)
|
||||
{
|
||||
if (cmd_buffer->device->info.is_cherryview)
|
||||
__emit_gen9_sf_state(cmd_buffer);
|
||||
else
|
||||
__emit_genx_sf_state(cmd_buffer);
|
||||
}
|
||||
|
||||
static void
|
||||
cmd_buffer_flush_state(struct anv_cmd_buffer *cmd_buffer)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue