mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
r600: Assert output registers have a valid export index.
This commit is contained in:
parent
1ec492a366
commit
1bf75a921b
1 changed files with 4 additions and 0 deletions
|
|
@ -2609,6 +2609,8 @@ GLboolean next_ins(r700_AssemblerBase *pAsm)
|
|||
|
||||
if(pAsm->D.dst.rtype == DST_REG_OUT)
|
||||
{
|
||||
assert(pAsm->D.dst.reg >= pAsm->starting_export_register_number);
|
||||
|
||||
if(pAsm->D.dst.op3)
|
||||
{
|
||||
// There is no mask for OP3 instructions, so all channels are written
|
||||
|
|
@ -6347,6 +6349,8 @@ GLboolean Process_Export(r700_AssemblerBase* pAsm,
|
|||
|
||||
if (export_count == 1)
|
||||
{
|
||||
assert(starting_register_number >= pAsm->starting_export_register_number);
|
||||
|
||||
ucWriteMask = pAsm->pucOutMask[starting_register_number - pAsm->starting_export_register_number];
|
||||
/* exports Z as a float into Red channel */
|
||||
if (GL_TRUE == is_depth_export)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue