[Mesa-dev] [PATCH 07/10] r300g: remove dependency on compiler.h

Marek Olšák maraeo at gmail.com
Thu Feb 26 02:49:40 PST 2015


Reviewed-by: Marek Olšák <marek.olsak at amd.com>

Marek

On Thu, Feb 26, 2015 at 2:29 AM, Brian Paul <brianp at vmware.com> wrote:
> It only needs typical stdio.h and stdlib.h functions.
> ---
>  src/gallium/drivers/r300/compiler/radeon_compiler.h         | 2 --
>  src/gallium/drivers/r300/compiler/radeon_emulate_loops.c    | 3 ++-
>  src/gallium/drivers/r300/compiler/radeon_remove_constants.c | 1 +
>  src/gallium/drivers/r300/compiler/radeon_variable.c         | 1 +
>  src/gallium/drivers/r300/r300_tgsi_to_rc.c                  | 1 +
>  5 files changed, 5 insertions(+), 3 deletions(-)
>
> diff --git a/src/gallium/drivers/r300/compiler/radeon_compiler.h b/src/gallium/drivers/r300/compiler/radeon_compiler.h
> index e2710d8..9dc6855 100644
> --- a/src/gallium/drivers/r300/compiler/radeon_compiler.h
> +++ b/src/gallium/drivers/r300/compiler/radeon_compiler.h
> @@ -23,8 +23,6 @@
>  #ifndef RADEON_COMPILER_H
>  #define RADEON_COMPILER_H
>
> -#include "main/compiler.h"
> -
>  #include "memory_pool.h"
>  #include "radeon_code.h"
>  #include "radeon_program.h"
> diff --git a/src/gallium/drivers/r300/compiler/radeon_emulate_loops.c b/src/gallium/drivers/r300/compiler/radeon_emulate_loops.c
> index e7b69c8..d42b3e7 100644
> --- a/src/gallium/drivers/r300/compiler/radeon_emulate_loops.c
> +++ b/src/gallium/drivers/r300/compiler/radeon_emulate_loops.c
> @@ -29,8 +29,9 @@
>   * \file
>   */
>
> +#include <stdio.h>
> +#include "c99_math.h"
>  #include "radeon_emulate_loops.h"
> -
>  #include "radeon_compiler.h"
>  #include "radeon_compiler_util.h"
>  #include "radeon_dataflow.h"
> diff --git a/src/gallium/drivers/r300/compiler/radeon_remove_constants.c b/src/gallium/drivers/r300/compiler/radeon_remove_constants.c
> index 7d76585..d17f502 100644
> --- a/src/gallium/drivers/r300/compiler/radeon_remove_constants.c
> +++ b/src/gallium/drivers/r300/compiler/radeon_remove_constants.c
> @@ -25,6 +25,7 @@
>   *
>   */
>
> +#include <stdlib.h>
>  #include "radeon_remove_constants.h"
>  #include "radeon_dataflow.h"
>
> diff --git a/src/gallium/drivers/r300/compiler/radeon_variable.c b/src/gallium/drivers/r300/compiler/radeon_variable.c
> index c7ac486f..ba89523 100644
> --- a/src/gallium/drivers/r300/compiler/radeon_variable.c
> +++ b/src/gallium/drivers/r300/compiler/radeon_variable.c
> @@ -25,6 +25,7 @@
>   *
>   */
>
> +#include <stdio.h>
>  #include "radeon_variable.h"
>
>  #include "memory_pool.h"
> diff --git a/src/gallium/drivers/r300/r300_tgsi_to_rc.c b/src/gallium/drivers/r300/r300_tgsi_to_rc.c
> index 4d94941..69afb4c 100644
> --- a/src/gallium/drivers/r300/r300_tgsi_to_rc.c
> +++ b/src/gallium/drivers/r300/r300_tgsi_to_rc.c
> @@ -20,6 +20,7 @@
>   * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
>   * USE OR OTHER DEALINGS IN THE SOFTWARE. */
>
> +#include <stdio.h>
>  #include "r300_tgsi_to_rc.h"
>
>  #include "compiler/radeon_compiler.h"
> --
> 1.9.1
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list