v3d: support 2712D0
2710D0 has V3D 7.1.10 which included draw index and base vertex in the shader state record packet, shuffling the locations of most of its fields. Handle this at run time by emitting the appropriate packet based on the V3D version since our current versoning framework doesn't support changes based on revision number alone. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29189>
This commit is contained in:
committed by
Marge Bot
parent
7b807c3e94
commit
1fc846dce3
@@ -52,4 +52,10 @@ typedef int (*v3d_ioctl_fun)(int fd, unsigned long request, void *arg);
|
||||
bool
|
||||
v3d_get_device_info(int fd, struct v3d_device_info* devinfo, v3d_ioctl_fun fun);
|
||||
|
||||
static inline bool
|
||||
v3d_device_has_draw_index(struct v3d_device_info *devinfo)
|
||||
{
|
||||
return devinfo->ver > 71 || (devinfo->ver == 71 && devinfo->rev >= 10);
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user