r100.c (8471a26b9c36c965d278020cc0699e2e95d120e5) | r100.c (cf57fc7aa2ac61d02a29550b99db6a01ccd7917c) |
---|---|
1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 1490 unchanged lines hidden (view full) --- 1499 if (r) 1500 return r; 1501 break; 1502 case PACKET3_3D_DRAW_IMMD: 1503 if (((radeon_get_ib_value(p, idx + 1) >> 4) & 0x3) != 3) { 1504 DRM_ERROR("PRIM_WALK must be 3 for IMMD draw\n"); 1505 return -EINVAL; 1506 } | 1/* 2 * Copyright 2008 Advanced Micro Devices, Inc. 3 * Copyright 2008 Red Hat Inc. 4 * Copyright 2009 Jerome Glisse. 5 * 6 * Permission is hereby granted, free of charge, to any person obtaining a 7 * copy of this software and associated documentation files (the "Software"), 8 * to deal in the Software without restriction, including without limitation --- 1490 unchanged lines hidden (view full) --- 1499 if (r) 1500 return r; 1501 break; 1502 case PACKET3_3D_DRAW_IMMD: 1503 if (((radeon_get_ib_value(p, idx + 1) >> 4) & 0x3) != 3) { 1504 DRM_ERROR("PRIM_WALK must be 3 for IMMD draw\n"); 1505 return -EINVAL; 1506 } |
1507 track->vtx_size = r100_get_vtx_size(radeon_get_ib_value(p, idx + 0)); |
|
1507 track->vap_vf_cntl = radeon_get_ib_value(p, idx + 1); 1508 track->immd_dwords = pkt->count - 1; 1509 r = r100_cs_track_check(p->rdev, track); 1510 if (r) 1511 return r; 1512 break; 1513 /* triggers drawing using in-packet vertex data */ 1514 case PACKET3_3D_DRAW_IMMD_2: --- 1979 unchanged lines hidden --- | 1508 track->vap_vf_cntl = radeon_get_ib_value(p, idx + 1); 1509 track->immd_dwords = pkt->count - 1; 1510 r = r100_cs_track_check(p->rdev, track); 1511 if (r) 1512 return r; 1513 break; 1514 /* triggers drawing using in-packet vertex data */ 1515 case PACKET3_3D_DRAW_IMMD_2: --- 1979 unchanged lines hidden --- |