getclient
getstats
getversion
-prime_api
-prime_pcopy
+prime_nv_api
+prime_nv_pcopy
+prime_nv_test
prime_self_import
-prime_test
testdisplay
sysfs_rc6_residency
# Please keep sorted alphabetically
gem_ctx_bad_exec \
gem_ctx_basic \
gem_reg_read \
- prime_api \
- prime_pcopy \
- prime_test \
+ prime_nv_api \
+ prime_nv_pcopy \
+ prime_nv_test \
prime_self_import \
$(NULL)
gem_ctx_basic_LDADD = $(LDADD) -lpthread
-prime_test_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS)
-prime_test_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS)
-prime_api_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS)
-prime_api_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS)
-prime_pcopy_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS)
-prime_pcopy_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS)
+prime_nv_test_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS)
+prime_nv_test_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS)
+prime_nv_api_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS)
+prime_nv_api_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS)
+prime_nv_pcopy_CFLAGS = $(AM_CFLAGS) $(DRM_NOUVEAU_CFLAGS)
+prime_nv_pcopy_LDADD = $(LDADD) $(DRM_NOUVEAU_LIBS)
if (nouveau_fd == -1 || intel_fd == -1 || nouveau_fd2 == -1 || intel_fd2 == -1) {
fprintf(stderr,"failed to find intel and nouveau GPU\n");
- return -1;
+ return 77;
}
/* set up intel bufmgr */
ret = nouveau_device_wrap(nouveau_fd, 0, &ndev);
if (ret < 0) {
fprintf(stderr,"failed to wrap nouveau device\n");
- return -1;
+ return 77;
}
ret = nouveau_client_new(ndev, &nclient);
ret = nouveau_device_wrap(nouveau_fd2, 0, &ndev2);
if (ret < 0) {
fprintf(stderr,"failed to wrap nouveau device\n");
- return -1;
+ return 77;
}
ret = nouveau_client_new(ndev2, &nclient2);
if (ret < 0)
return ret;
- if (nouveau_fd == -1 && intel_fd == -1) {
+ if (nouveau_fd == -1 || intel_fd == -1) {
fprintf(stderr,"failed to find intel and nouveau GPU\n");
- return -1;
+ return 77;
}
/* set up intel bufmgr */
/* set up nouveau bufmgr */
ret = init_nouveau();
if (ret < 0)
- return ret;
+ return 77;
/* set up an intel batch buffer */
devid = intel_get_drm_devid(intel_fd);
if (ret < 0)
return ret;
- if (nouveau_fd == -1 && intel_fd == -1) {
+ if (nouveau_fd == -1 || intel_fd == -1) {
fprintf(stderr,"failed to find intel and nouveau GPU\n");
- return -1;
+ return 77;
}
/* set up intel bufmgr */
ret = nouveau_device_wrap(nouveau_fd, 0, &ndev);
if (ret < 0) {
fprintf(stderr,"failed to wrap nouveau device\n");
- return -1;
+ return 77;
}
ret = nouveau_client_new(ndev, &nclient);