summaryrefslogtreecommitdiff
path: root/include/drm/Makefile.am
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2011-12-20 13:10:36 -0800
committerEric Anholt <eric@anholt.net>2011-12-29 16:43:27 -0800
commit078bc5b6ee24ea786c465f5e29dcb8b0d2f81b2e (patch)
tree46e1417339ff138d642fe2db539613bb1a81b6fd /include/drm/Makefile.am
parent8c4a2c884846caca517b49e2026661e57924d9e1 (diff)
intel: Make intel_chipset handle devid directly.
This will make these macros reusable from intel_decode.c, which doesn't have a bufmgr_gem context, without faking the struct. We should generally only be using these macros from bufmgr_gem context setup anyway. Acked-by: Daniel Vetter <daniel.vetter@ffwll.ch> Acked-by: Eugeni Dodonov <eugeni@dodonov.net>
Diffstat (limited to 'include/drm/Makefile.am')
0 files changed, 0 insertions, 0 deletions
T OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * Authors: * Kristian Høgsberg <krh@bitplanet.net> * */ #include <unistd.h> #include <fcntl.h> #include <limits.h> #include "drmtest.h" /** * Checks drmGetDeviceNameFromFd * * This tests that we can get the actual version out, and that setting invalid * major/minor numbers fails appropriately. It does not check the actual * behavior differenses resulting from an increased DI version. */ int main(int argc, char **argv) { int fd, ret; drm_set_version_t sv, version; const char *name = "/dev/dri/card0"; char *v; fd = open("/dev/dri/card0", O_RDWR); if (fd == -1) return 0; v = drmGetDeviceNameFromFd(fd); close(fd); assert(strcmp(name, v) == 0); drmFree(v); return 0; }