mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 13:28:06 +02:00
r300-gallium: Fix CS size mismatch
This fixes some warnings which appear because the driver assumes a wrong cs size (13 vs 16 register writes in some cases).
This commit is contained in:
parent
dad1c1be18
commit
b8fff1f9f1
1 changed files with 5 additions and 1 deletions
|
|
@ -340,7 +340,11 @@ void r300_emit_vertex_shader(struct r300_context* r300,
|
|||
return;
|
||||
}
|
||||
|
||||
BEGIN_CS(13 + (vs->instruction_count * 4) + (constants->count * 4));
|
||||
if (constants->count) {
|
||||
BEGIN_CS(16 + (vs->instruction_count * 4) + (constants->count * 4));
|
||||
} else {
|
||||
BEGIN_CS(13 + (vs->instruction_count * 4) + (constants->count * 4));
|
||||
}
|
||||
|
||||
OUT_CS_REG(R300_VAP_PVS_CODE_CNTL_0, R300_PVS_FIRST_INST(0) |
|
||||
R300_PVS_LAST_INST(vs->instruction_count - 1));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue