summaryrefslogtreecommitdiff
path: root/bsd
ModeNameSize
-rw-r--r--Imakefile1716logplain
-rw-r--r--Makefile127logplain
-rw-r--r--Makefile.bsd127logplain
-rw-r--r--ati_pcigart.h4244logplain
-rw-r--r--drm.h16481logplain
-rw-r--r--drmP.h22149logplain
-rw-r--r--drm_agpsupport.h8511logplain
-rw-r--r--drm_auth.h4263logplain
-rw-r--r--drm_bufs.h29429logplain
-rw-r--r--drm_context.h17466logplain
-rw-r--r--drm_dma.h15413logplain
-rw-r--r--drm_drawable.h1777logplain
-rw-r--r--drm_drv.h33744logplain
-rw-r--r--drm_fops.h6547logplain
-rw-r--r--drm_init.h3533logplain
-rw-r--r--drm_ioctl.h5617logplain
-rw-r--r--drm_lists.h5780logplain
-rw-r--r--drm_lock.h6198logplain
-rw-r--r--drm_memory.h11029logplain
-rw-r--r--drm_os_freebsd.h12122logplain
-rw-r--r--drm_os_netbsd.h10442logplain
-rw-r--r--drm_scatter.h5256logplain
-rw-r--r--drm_sysctl.h14190logplain
-rw-r--r--drm_vm.h2184logplain
-rw-r--r--gamma.h2217logplain
d---------gamma36logplain
-rw-r--r--gamma_dma.c16045logplain
-rw-r--r--gamma_drm.h2837logplain
-rw-r--r--gamma_drv.c2891logplain
-rw-r--r--gamma_drv.h3736logplain
d---------mga36logplain
-rw-r--r--mga_drv.c2476logplain
d---------r12836logplain
-rw-r--r--r128_drv.c3364logplain
d---------radeon36logplain
-rw-r--r--radeon_drv.c2830logplain
-rw-r--r--tdfx.h1598logplain
d---------tdfx36logplain
-rw-r--r--tdfx_drv.c3277logplain
'>551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773
/*
 * Copyright 2012 Red Hat Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: Ben Skeggs
 */

#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include <assert.h>
#include <errno.h>

#include <xf86drm.h>
#include <xf86atomic.h>
#include "libdrm_lists.h"
#include "nouveau_drm.h"

#include "nouveau.h"
#include "private.h"

struct nouveau_pushbuf_krec {
	struct nouveau_pushbuf_krec *next;
	struct drm_nouveau_gem_pushbuf_bo buffer[NOUVEAU_GEM_MAX_BUFFERS];
	struct drm_nouveau_gem_pushbuf_reloc reloc[NOUVEAU_GEM_MAX_RELOCS];
	struct drm_nouveau_gem_pushbuf_push push[NOUVEAU_GEM_MAX_PUSH];
	int nr_buffer;
	int nr_reloc;
	int nr_push;
	uint64_t vram_used;